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.0007527/0.0007527, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008211/0.0008211, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05256/0.05256, allocations: 10.75 MB / 281.1 MB, free: 10.54 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.0004514/0.0004514, allocations: 26.95 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06623/0.06669, allocations: 49.99 MB / 391.7 MB, free: 5.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.001887/0.0686, allocations: 1.649 MB / 393.4 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.06998, allocations: 1.089 MB / 394.5 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.697e-05/0.07008, allocations: 7.938 kB / 394.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.07068, allocations: 247.4 kB / 394.7 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.071, allocations: 171.5 kB / 394.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.07155, allocations: 235.6 kB / 395.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.07186, allocations: 299.2 kB / 395.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.07197, allocations: 52.28 kB / 395.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.07214, allocations: 119.4 kB / 395.6 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.0723, allocations: 127.5 kB / 395.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.07233, allocations: 4 kB / 395.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.07248, allocations: 79.89 kB / 395.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.07257, allocations: 59.8 kB / 395.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.72e-05/0.07264, allocations: 73.52 kB / 395.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.07289, allocations: 263.7 kB / 396.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.0729, allocations: 3.938 kB / 396.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.07291, allocations: 0 / 396.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.07292, allocations: 0 / 396.2 MB, free: 1.191 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.000708/0.07363, allocations: 0.591 MB / 396.8 MB, free: 0.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.07367, allocations: 8.031 kB / 396.8 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.07373, allocations: 50.42 kB / 396.8 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.07379, allocations: 39.62 kB / 396.9 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.07411, allocations: 303.2 kB / 397.2 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.07414, allocations: 16.17 kB / 397.2 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.07416, allocations: 8 kB / 397.2 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.07444, allocations: 149.3 kB / 397.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.07446, allocations: 3.953 kB / 397.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.07448, allocations: 11.98 kB / 397.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.07449, allocations: 4 kB / 397.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.07464, allocations: 64.34 kB / 397.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.07521, allocations: 488.6 kB / 397.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.0755, allocations: 142.7 kB / 398 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.07561, allocations: 48.84 kB / 398.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.07564, allocations: 4 kB / 398.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002239/0.07587, allocations: 130 kB / 398.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.613e-06/0.07588, allocations: 0 / 398.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004807/0.07637, allocations: 269.1 kB / 398.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.07643, allocations: 110.8 kB / 398.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.0768, allocations: 376.5 kB / 398.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.07683, allocations: 33.7 kB / 399 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.765e-05/0.07693, allocations: 160.4 kB / 399.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.07698, allocations: 47.39 kB / 399.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.07699, allocations: 4 kB / 399.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.0771, allocations: 346.8 kB / 399.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.742e-05/0.0772, allocations: 43.97 kB / 399.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.07737, allocations: 148.6 kB / 399.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.0775, allocations: 51.94 kB / 399.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.07751, allocations: 4 kB / 399.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003422/0.07786, allocations: 217.1 kB / 400 MB, free: 13.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.07788, allocations: 8 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.07789, allocations: 4 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.07791, allocations: 4 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.07803, allocations: 31.86 kB / 400 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.07805, allocations: 16.17 kB / 400 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.07816, allocations: 23.84 kB / 400.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.07819, allocations: 12 kB / 400.1 MB, free: 12.98 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,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd,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 (26): * Single equations (assignments): 26 * 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.0001797/0.07838, allocations: 187.9 kB / 400.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.573e-05/0.07842, allocations: 27.72 kB / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.408e-05/0.07848, allocations: 31.08 kB / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.07849, allocations: 4 kB / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.0785, allocations: 0 / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.07851, allocations: 0 / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.07874, allocations: 301.3 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.07876, allocations: 0 / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.332e-05/0.07879, allocations: 4 kB / 400.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.07881, allocations: 7.984 kB / 400.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.07882, allocations: 4 kB / 400.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.07883, allocations: 4 kB / 400.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.07884, allocations: 4 kB / 400.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000356/0.0792, allocations: 247.7 kB / 400.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.907e-05/0.07928, allocations: 108.8 kB / 401 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/0.07933, allocations: 11.98 kB / 401 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.07942, allocations: 11.98 kB / 401 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.07947, allocations: 11.98 kB / 401 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.07949, allocations: 8 kB / 401 MB, free: 11.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.07976, allocations: 283 kB / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07977, allocations: 0 / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.08007, allocations: 59.92 kB / 401.4 MB, free: 11.61 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 (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.001338/0.08141, allocations: 1.131 MB / 402.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002875/0.08171, allocations: 143.8 kB / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.08172, allocations: 0 / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.08186, allocations: 71.92 kB / 402.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.08223, allocations: 61.53 kB / 402.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.08434, allocations: 1.601 MB / 404.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.08462, allocations: 0.7638 MB / 405.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.08474, allocations: 50.52 kB / 405.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.08486, allocations: 79.41 kB / 405.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08487, allocations: 0 / 405.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1013, allocations: 6.538 MB / 411.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.1015, allocations: 251.9 kB / 412 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/1.826, allocations: 0 / 412 MB, free: 0.8594 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1) Environment - environmentSimulation: