Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",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.001992/0.001992, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002561/0.002561, allocations: 193.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.336/2.336, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05978/0.05978, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.002631/0.002631, allocations: 63.91 kB / 340.6 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1428, allocations: 49.03 MB / 389.7 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.005589/0.1485, allocations: 1.988 MB / 391.7 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003222/0.1517, allocations: 1.174 MB / 392.8 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.152, allocations: 7.938 kB / 392.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.1534, allocations: 271.2 kB / 393.1 MB, free: 2.664 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0008454/0.1543, allocations: 191.3 kB / 393.3 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.1556, allocations: 283.4 kB / 393.6 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007551/0.1564, allocations: 351.1 kB / 393.9 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.1566, allocations: 48.3 kB / 394 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.157, allocations: 135.5 kB / 394.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.1574, allocations: 147.4 kB / 394.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.463e-05/0.1575, allocations: 16 kB / 394.3 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004002/0.1579, allocations: 91.95 kB / 394.3 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.1581, allocations: 83.67 kB / 394.4 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.1584, allocations: 123.3 kB / 394.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007899/0.1592, allocations: 347.1 kB / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1592, allocations: 0 / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1592, allocations: 0 / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.1593, allocations: 0 / 394.9 MB, free: 0.8828 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.001618/0.1609, allocations: 0.6342 MB / 395.5 MB, free: 192 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.161, allocations: 15.83 kB / 395.5 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.76e-05/0.1611, allocations: 46.73 kB / 395.6 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.1612, allocations: 36.56 kB / 395.6 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.162, allocations: 324.2 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.162, allocations: 15.94 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.1621, allocations: 15.98 kB / 396 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.1626, allocations: 144.2 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1626, allocations: 0 / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.1627, allocations: 3.984 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.1627, allocations: 4 kB / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.163, allocations: 75.83 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.1642, allocations: 480.2 kB / 396.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005756/0.1648, allocations: 134.8 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.165, allocations: 64.83 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.1651, allocations: 0 / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00043/0.1655, allocations: 127.3 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.856e-06/0.1655, allocations: 8 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009977/0.1665, allocations: 260 kB / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.1667, allocations: 114.8 kB / 397.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007372/0.1674, allocations: 380.4 kB / 397.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.1675, allocations: 33.7 kB / 397.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1677, allocations: 156.4 kB / 397.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.385e-05/0.1678, allocations: 43.41 kB / 397.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1679, allocations: 57.69 kB / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.1682, allocations: 342.8 kB / 398.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.1684, allocations: 55.84 kB / 398.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.1687, allocations: 140.6 kB / 398.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.1693, allocations: 180.4 kB / 398.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1693, allocations: 4 kB / 398.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006847/0.17, allocations: 225.1 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.17, allocations: 8 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1701, allocations: 0 / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.1701, allocations: 4 kB / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1703, allocations: 36.05 kB / 399 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.143e-05/0.1704, allocations: 11.97 kB / 399 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.1706, allocations: 23.78 kB / 399 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.1706, allocations: 8 kB / 399 MB, free: 12.39 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0003723/0.171, allocations: 184.1 kB / 399.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.1711, allocations: 31.62 kB / 399.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.1712, allocations: 27.08 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.1713, allocations: 4 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1713, allocations: 0 / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.1713, allocations: 3.938 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004675/0.1718, allocations: 301.3 kB / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1718, allocations: 0 / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-05/0.1719, allocations: 4 kB / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1719, allocations: 4 kB / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.1719, allocations: 3.984 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.172, allocations: 0 / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.172, allocations: 4 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.1728, allocations: 248.6 kB / 399.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1729, allocations: 100.8 kB / 399.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.496e-05/0.173, allocations: 8 kB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.1732, allocations: 11.98 kB / 399.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.529e-05/0.1733, allocations: 12.02 kB / 399.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.681e-05/0.1734, allocations: 23.92 kB / 400 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000518/0.1739, allocations: 275 kB / 400.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1739, allocations: 0 / 400.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000605/0.1745, allocations: 71.83 kB / 400.3 MB, free: 11.01 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0027/0.1772, allocations: 1.105 MB / 401.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006444/0.1779, allocations: 164.2 kB / 401.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1779, allocations: 4.062 kB / 401.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.1782, allocations: 71.91 kB / 401.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007194/0.1789, allocations: 72.91 kB / 401.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006121/0.1851, allocations: 2.831 MB / 404.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/0.1859, allocations: 0.7635 MB / 405.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.1861, allocations: 42.27 kB / 405.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.1865, allocations: 87.39 kB / 405.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of SimCode: time 1.173e-06/0.1865, allocations: 0 / 405.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03979/0.2263, allocations: 7.171 MB / 412.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/15.77, allocations: 7.75 kB / 412.6 MB, free: 14.61 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_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_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)