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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 98.77 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05511/0.05511, allocations: 10.73 MB / 281.1 MB, free: 10.44 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000648/0.0006484, allocations: 16 kB / 341.7 MB, free: 23.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1484, allocations: 50 MB / 391.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003684/0.1522, allocations: 1.641 MB / 393.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.1547, allocations: 1.066 MB / 394.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.155, allocations: 7.938 kB / 394.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009847/0.156, allocations: 263.4 kB / 394.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.1564, allocations: 171.6 kB / 394.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.1573, allocations: 251.4 kB / 395.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003711/0.1576, allocations: 207.6 kB / 395.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.1578, allocations: 48.27 kB / 395.3 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1581, allocations: 127.5 kB / 395.4 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.1583, allocations: 123.6 kB / 395.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.1583, allocations: 4 kB / 395.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.1586, allocations: 79.81 kB / 395.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1587, allocations: 71.81 kB / 395.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1588, allocations: 69.52 kB / 395.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.1593, allocations: 283.6 kB / 396.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1593, allocations: 0 / 396.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.372e-06/0.1593, allocations: 0 / 396.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.1593, allocations: 3.938 kB / 396.1 MB, free: 1.281 MB / 286.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.001226/0.1606, allocations: 0.6186 MB / 396.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.1606, allocations: 8.031 kB / 396.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.746e-05/0.1607, allocations: 42.55 kB / 396.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.178e-05/0.1608, allocations: 35.53 kB / 396.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.1614, allocations: 323.1 kB / 397.1 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1614, allocations: 8.188 kB / 397.1 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.1614, allocations: 19.98 kB / 397.1 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.1619, allocations: 153.2 kB / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.1619, allocations: 3.953 kB / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1619, allocations: 4 kB / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1619, allocations: 0 / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.1621, allocations: 72.28 kB / 397.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009013/0.1631, allocations: 0.4928 MB / 397.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.1635, allocations: 146.8 kB / 398 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.1636, allocations: 7.938 kB / 398 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.1639, allocations: 134.3 kB / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.264e-06/0.1639, allocations: 0 / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007423/0.1647, allocations: 362.2 kB / 398.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.1648, allocations: 110.8 kB / 398.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000577/0.1654, allocations: 441.6 kB / 399 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.8e-05/0.1654, allocations: 33.7 kB / 399 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.1656, allocations: 172.3 kB / 399.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.765e-05/0.1656, allocations: 43.45 kB / 399.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-06/0.1657, allocations: 4 kB / 399.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.1659, allocations: 350.8 kB / 399.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.166, allocations: 48.22 kB / 399.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.1662, allocations: 144.4 kB / 399.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.1664, allocations: 63.92 kB / 399.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1664, allocations: 0 / 399.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004241/0.1668, allocations: 229.1 kB / 400.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.1668, allocations: 8 kB / 400.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1669, allocations: 0 / 400.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.1669, allocations: 4 kB / 400.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.167, allocations: 35.92 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.167, allocations: 4 kB / 400.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.1672, allocations: 27.73 kB / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1672, allocations: 16.19 kB / 400.2 MB, free: 12.86 MB / 302.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,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003054/0.1676, allocations: 188.2 kB / 400.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.1676, allocations: 31.62 kB / 400.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.654e-05/0.1677, allocations: 35.28 kB / 400.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1677, allocations: 0 / 400.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.1677, allocations: 4 kB / 400.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1678, allocations: 11.92 kB / 400.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003737/0.1681, allocations: 301.3 kB / 400.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1682, allocations: 3.984 kB / 400.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.435e-05/0.1682, allocations: 8 kB / 400.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1682, allocations: 0 / 400.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1682, allocations: 8 kB / 400.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1682, allocations: 3.938 kB / 400.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1682, allocations: 128 / 400.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.1687, allocations: 263.2 kB / 401 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.1688, allocations: 120.7 kB / 401.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.1689, allocations: 7.984 kB / 401.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.169, allocations: 15.98 kB / 401.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.1691, allocations: 11.92 kB / 401.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.1691, allocations: 12 kB / 401.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003653/0.1695, allocations: 319.1 kB / 401.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1695, allocations: 0 / 401.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.1699, allocations: 76.05 kB / 401.6 MB, free: 11.37 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001944/0.1718, allocations: 1.132 MB / 402.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000406/0.1723, allocations: 155.8 kB / 402.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1723, allocations: 0 / 402.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.1725, allocations: 79.88 kB / 402.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.1729, allocations: 65.97 kB / 403 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/0.1768, allocations: 3.072 MB / 406.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.1773, allocations: 0.791 MB / 406.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.1775, allocations: 50.92 kB / 406.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.1776, allocations: 95.41 kB / 407 MB, free: 5.895 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1777, allocations: 0 / 407 MB, free: 5.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.201, allocations: 6.964 MB / 414 MB, free: 14.99 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002432/0.2013, allocations: 252.2 kB / 414.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.121, allocations: 0 / 414.2 MB, free: 14.66 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) Environment - environmentSimulation: