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.001355/0.001355, allocations: 106.2 kB / 18.84 MB, free: 3.047 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.00162/0.00162, allocations: 215.1 kB / 22.13 MB, free: 5.141 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.512/1.512, allocations: 230.5 MB / 255.8 MB, free: 8.242 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06578/0.06578, allocations: 11.36 MB / 323.5 MB, free: 8.305 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-master/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.002075/0.002075, allocations: 71.89 kB / 450.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1193, allocations: 56.07 MB / 0.4949 GB, free: 2.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003877/0.1232, allocations: 2.048 MB / 0.4969 GB, free: 456 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.1258, allocations: 1.43 MB / 0.4983 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.1259, allocations: 3.938 kB / 0.4983 GB, free: 15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009278/0.1268, allocations: 314.8 kB / 0.4986 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006861/0.1275, allocations: 267.1 kB / 0.4988 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008094/0.1283, allocations: 259.3 kB / 0.4991 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005433/0.1289, allocations: 375 kB / 0.4994 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.129, allocations: 29.2 kB / 0.4995 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.1293, allocations: 159.4 kB / 0.4996 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.1295, allocations: 167.3 kB / 0.4998 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.1296, allocations: 20 kB / 0.4998 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.1298, allocations: 127.8 kB / 0.4999 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.13, allocations: 91.72 kB / 0.5 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.1301, allocations: 131.2 kB / 0.5001 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005501/0.1307, allocations: 398.3 kB / 0.5005 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1307, allocations: 0 / 0.5005 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1307, allocations: 0 / 0.5005 GB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.1307, allocations: 3.984 kB / 0.5005 GB, free: 12.71 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.001217/0.1319, allocations: 0.6245 MB / 0.5011 GB, free: 12.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.132, allocations: 12.03 kB / 0.5011 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.393e-05/0.132, allocations: 38.73 kB / 0.5012 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.1321, allocations: 40.7 kB / 0.5012 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.1326, allocations: 281 kB / 0.5015 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.1326, allocations: 19.86 kB / 0.5015 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.1326, allocations: 12 kB / 0.5015 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.133, allocations: 205.8 kB / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.133, allocations: 4 kB / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.133, allocations: 0 / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.133, allocations: 0 / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.1332, allocations: 79.88 kB / 0.5018 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.134, allocations: 463.4 kB / 0.5022 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.1344, allocations: 142.8 kB / 0.5024 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1345, allocations: 52.78 kB / 0.5024 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.1345, allocations: 7.984 kB / 0.5024 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.1348, allocations: 131.3 kB / 0.5025 GB, free: 10.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.843e-06/0.1348, allocations: 0 / 0.5025 GB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007192/0.1356, allocations: 295.8 kB / 0.5028 GB, free: 10.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.031e-05/0.1356, allocations: 110.8 kB / 0.5029 GB, free: 10.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005744/0.1362, allocations: 461.6 kB / 0.5034 GB, free: 9.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.1362, allocations: 33.7 kB / 0.5034 GB, free: 9.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1364, allocations: 180.4 kB / 0.5036 GB, free: 9.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.1365, allocations: 43.69 kB / 0.5036 GB, free: 9.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/0.1365, allocations: 49.89 kB / 0.5037 GB, free: 9.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1367, allocations: 346.8 kB / 0.504 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1368, allocations: 52.06 kB / 0.504 GB, free: 8.844 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.1371, allocations: 255.2 kB / 0.5043 GB, free: 8.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.1375, allocations: 196.3 kB / 0.5045 GB, free: 8.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1375, allocations: 4 kB / 0.5045 GB, free: 8.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004614/0.138, allocations: 233.2 kB / 0.5047 GB, free: 8.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.138, allocations: 4 kB / 0.5047 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.138, allocations: 4 kB / 0.5047 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.138, allocations: 4 kB / 0.5047 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1381, allocations: 31.92 kB / 0.5047 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1381, allocations: 12.19 kB / 0.5048 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.1383, allocations: 27.88 kB / 0.5048 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.1383, allocations: 11.94 kB / 0.5048 GB, free: 7.973 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.0002965/0.1386, allocations: 172.4 kB / 0.505 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.1387, allocations: 35.77 kB / 0.505 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005328/0.1392, allocations: 256.8 kB / 0.5052 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1392, allocations: 4 kB / 0.5052 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1392, allocations: 0 / 0.5052 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.1392, allocations: 3.984 kB / 0.5052 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.1396, allocations: 288.4 kB / 0.5055 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1396, allocations: 0 / 0.5055 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.509e-05/0.1396, allocations: 11.98 kB / 0.5055 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1396, allocations: 0 / 0.5055 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1397, allocations: 4.125 kB / 0.5055 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.1397, allocations: 4 kB / 0.5055 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1397, allocations: 4 kB / 0.5055 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005021/0.1402, allocations: 283.5 kB / 0.5058 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.266e-05/0.1402, allocations: 31.8 kB / 0.5058 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.1403, allocations: 8 kB / 0.5059 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.1404, allocations: 7.984 kB / 0.5059 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.1404, allocations: 11.98 kB / 0.5059 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.1405, allocations: 15.98 kB / 0.5059 GB, free: 6.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004754/0.1409, allocations: 343.1 kB / 0.5062 GB, free: 6.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1409, allocations: 0 / 0.5062 GB, free: 6.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003659/0.1413, allocations: 63.86 kB / 0.5063 GB, free: 6.391 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * 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.002362/0.1437, allocations: 1.146 MB / 0.5074 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.1441, allocations: 150.9 kB / 0.5075 GB, free: 5.227 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1441, allocations: 4 kB / 0.5075 GB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.1442, allocations: 67.91 kB / 0.5076 GB, free: 5.156 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.1447, allocations: 72.36 kB / 0.5077 GB, free: 5.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.1492, allocations: 3.109 MB / 0.5107 GB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.1494, allocations: 174.1 kB / 0.5109 GB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.1495, allocations: 46.95 kB / 0.5109 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.1497, allocations: 95.39 kB / 0.511 GB, free: 1.52 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1497, allocations: 0 / 0.511 GB, free: 1.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2349/0.3846, allocations: 8.178 MB / 0.519 GB, free: 22.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.23, allocations: 7.516 kB / 0.519 GB, free: 22.33 MB / 382.1 MB " [Timeout remaining time 648] (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: 15.377293167170137] Failed to read output from testmodel.py, exit status != 0: 12.397670226171613 12.419818349 12.284811139 Calling exit ...