Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 106.9 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002241/0.002241, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.574/1.574, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.0659/0.0659, allocations: 11.32 MB / 320.2 MB, free: 9.402 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 67.91 kB / 445.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1136, allocations: 56.01 MB / 0.4901 GB, free: 5.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003477/0.1171, allocations: 2.04 MB / 0.4921 GB, free: 3.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1199, allocations: 1.415 MB / 0.4934 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.12, allocations: 3.938 kB / 0.4934 GB, free: 2.148 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008628/0.1209, allocations: 306.1 kB / 0.4937 GB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007425/0.1216, allocations: 259.1 kB / 0.494 GB, free: 1.598 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006734/0.1223, allocations: 254.5 kB / 0.4942 GB, free: 1.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.1228, allocations: 375 kB / 0.4946 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1229, allocations: 33 kB / 0.4946 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.1232, allocations: 159.4 kB / 0.4948 GB, free: 0.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.1234, allocations: 163.3 kB / 0.4949 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.354e-05/0.1234, allocations: 20 kB / 0.4949 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.1237, allocations: 119.8 kB / 0.495 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1238, allocations: 87.73 kB / 0.4951 GB, free: 420 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.124, allocations: 135.1 kB / 0.4953 GB, free: 284 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005748/0.1245, allocations: 402.4 kB / 0.4956 GB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1245, allocations: 0 / 0.4956 GB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1245, allocations: 3.938 kB / 0.4956 GB, free: 15.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1246, allocations: 0 / 0.4956 GB, free: 15.88 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.00128/0.1258, allocations: 0.692 MB / 0.4963 GB, free: 15.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1259, allocations: 8.031 kB / 0.4963 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.344e-05/0.1259, allocations: 42.73 kB / 0.4964 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.126, allocations: 36.7 kB / 0.4964 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.1265, allocations: 358.8 kB / 0.4967 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.1266, allocations: 11.92 kB / 0.4968 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.1266, allocations: 12 kB / 0.4968 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.1269, allocations: 150.6 kB / 0.4969 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1269, allocations: 0 / 0.4969 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.127, allocations: 8 kB / 0.4969 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.127, allocations: 0 / 0.4969 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.1272, allocations: 79.83 kB / 0.497 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008154/0.128, allocations: 488.4 kB / 0.4975 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.1285, allocations: 138.6 kB / 0.4976 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.1286, allocations: 60.92 kB / 0.4977 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.1286, allocations: 4 kB / 0.4977 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003152/0.1289, allocations: 131.3 kB / 0.4978 GB, free: 13.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.1289, allocations: 0 / 0.4978 GB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007375/0.1297, allocations: 293.2 kB / 0.4981 GB, free: 13.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1298, allocations: 110.8 kB / 0.4982 GB, free: 13.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006373/0.1304, allocations: 461.6 kB / 0.4986 GB, free: 12.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.1304, allocations: 33.7 kB / 0.4986 GB, free: 12.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1306, allocations: 168.4 kB / 0.4988 GB, free: 12.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.883e-05/0.1307, allocations: 51.61 kB / 0.4989 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.1308, allocations: 53.7 kB / 0.4989 GB, free: 12.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.131, allocations: 354.7 kB / 0.4992 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.1311, allocations: 44.42 kB / 0.4993 GB, free: 11.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.1313, allocations: 149.9 kB / 0.4994 GB, free: 11.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.1317, allocations: 204.3 kB / 0.4996 GB, free: 11.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.1317, allocations: 4 kB / 0.4996 GB, free: 11.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004531/0.1322, allocations: 233.4 kB / 0.4998 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1322, allocations: 8 kB / 0.4999 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1322, allocations: 0 / 0.4999 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.1323, allocations: 4 kB / 0.4999 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.1324, allocations: 31.92 kB / 0.4999 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1324, allocations: 4 kB / 0.4999 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.1325, allocations: 23.88 kB / 0.4999 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.1326, allocations: 11.94 kB / 0.4999 GB, free: 11.15 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) \"status of the timer\" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) \"residual time\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002923/0.1329, allocations: 188.9 kB / 0.5001 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/0.1329, allocations: 35.77 kB / 0.5001 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.712e-05/0.133, allocations: 31.36 kB / 0.5002 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.133, allocations: 8.031 kB / 0.5002 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.133, allocations: 0 / 0.5002 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.133, allocations: 3.984 kB / 0.5002 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/0.1334, allocations: 313.4 kB / 0.5005 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.1334, allocations: 4 kB / 0.5005 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.186e-05/0.1335, allocations: 15.98 kB / 0.5005 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1335, allocations: 0 / 0.5005 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.1335, allocations: 8 kB / 0.5005 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1335, allocations: 0 / 0.5005 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1335, allocations: 0 / 0.5005 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005373/0.134, allocations: 267.3 kB / 0.5008 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1342, allocations: 112.9 kB / 0.5009 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.1342, allocations: 12 kB / 0.5009 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.802e-05/0.1343, allocations: 7.984 kB / 0.5009 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.1344, allocations: 19.92 kB / 0.5009 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.1344, allocations: 4 kB / 0.5009 GB, free: 10.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004141/0.1348, allocations: 347.1 kB / 0.5012 GB, free: 9.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1348, allocations: 0 / 0.5012 GB, free: 9.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003526/0.1352, allocations: 67.88 kB / 0.5013 GB, free: 9.652 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002474/0.1377, allocations: 1.135 MB / 0.5024 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004298/0.1381, allocations: 147.8 kB / 0.5026 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1381, allocations: 0.5 kB / 0.5026 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.1383, allocations: 78.62 kB / 0.5026 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.1388, allocations: 80.42 kB / 0.5027 GB, free: 8.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.1431, allocations: 3.095 MB / 0.5057 GB, free: 5.129 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.1436, allocations: 0.7869 MB / 0.5065 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.1437, allocations: 50.94 kB / 0.5066 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.1439, allocations: 103.4 kB / 0.5066 GB, free: 4.164 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1439, allocations: 0 / 0.5066 GB, free: 4.164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2418/0.3857, allocations: 7.973 MB / 0.5144 GB, free: 23.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.471/8.856, allocations: 9.641 kB / 0.5144 GB, free: 23.88 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.079403900002944] Failed to read output from testmodel.py, exit status != 0: 8.986715456005186 9.002868473 8.875189772 Calling exit ...