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.001332/0.001332, allocations: 99.55 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.001597/0.001597, 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 1.795/1.795, allocations: 205.4 MB / 222.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05665/0.05666, allocations: 10.75 MB / 281.1 MB, free: 10.45 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.0006068/0.0006073, allocations: 12 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1475, allocations: 50.02 MB / 391.7 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002796/0.1504, allocations: 1.637 MB / 393.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1523, allocations: 1.054 MB / 394.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1524, allocations: 11.94 kB / 394.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008782/0.1533, allocations: 235.4 kB / 394.6 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003587/0.1537, allocations: 155.6 kB / 394.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006596/0.1544, allocations: 247.4 kB / 395 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.1546, allocations: 203.6 kB / 395.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1548, allocations: 44.28 kB / 395.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.155, allocations: 115.5 kB / 395.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.1551, allocations: 115.5 kB / 395.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.718e-05/0.1552, allocations: 7.984 kB / 395.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.1554, allocations: 71.83 kB / 395.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.177e-05/0.1555, allocations: 63.8 kB / 395.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.696e-05/0.1555, allocations: 69.58 kB / 395.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1559, allocations: 255.7 kB / 396 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1559, allocations: 0 / 396 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.1559, allocations: 0 / 396 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.1559, allocations: 11.94 kB / 396 MB, free: 1.395 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.0009187/0.1568, allocations: 0.5953 MB / 396.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1569, allocations: 8.031 kB / 396.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.157, allocations: 46.48 kB / 396.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.581e-05/0.157, allocations: 27.62 kB / 396.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000453/0.1575, allocations: 315.1 kB / 397 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1575, allocations: 12.19 kB / 397 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.1575, allocations: 11.98 kB / 397 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.1578, allocations: 145.3 kB / 397.1 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1579, allocations: 3.953 kB / 397.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.1579, allocations: 4 kB / 397.1 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1579, allocations: 7.984 kB / 397.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.1581, allocations: 64.33 kB / 397.2 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007928/0.1589, allocations: 488.7 kB / 397.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.1592, allocations: 142.7 kB / 397.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1593, allocations: 0 / 397.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.1596, allocations: 123.3 kB / 397.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1596, allocations: 0 / 397.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006665/0.1603, allocations: 353.1 kB / 398.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.1604, allocations: 110.8 kB / 398.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.1608, allocations: 376.5 kB / 398.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.1608, allocations: 29.7 kB / 398.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.161, allocations: 160.4 kB / 398.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.161, allocations: 47.39 kB / 399 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.161, allocations: 4 kB / 399 MB, free: 14.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1612, allocations: 346.8 kB / 399.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.1613, allocations: 43.98 kB / 399.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.1616, allocations: 148.5 kB / 399.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.1617, allocations: 59.98 kB / 399.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1617, allocations: 0 / 399.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003855/0.1621, allocations: 221.2 kB / 399.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.1622, allocations: 8 kB / 399.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1622, allocations: 7.984 kB / 399.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1622, allocations: 0 / 399.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.1624, allocations: 31.92 kB / 399.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1624, allocations: 4 kB / 399.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.1625, allocations: 23.84 kB / 399.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.1625, allocations: 12.06 kB / 399.9 MB, free: 13.16 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.0002704/0.1628, allocations: 191.9 kB / 400.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.1629, allocations: 27.72 kB / 400.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.522e-05/0.1629, allocations: 27.08 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1629, allocations: 4 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.163, allocations: 0 / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.163, allocations: 3.984 kB / 400.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/0.1633, allocations: 301.3 kB / 400.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1633, allocations: 0 / 400.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.448e-05/0.1633, allocations: 7.984 kB / 400.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1633, allocations: 4 kB / 400.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1634, allocations: 0 / 400.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.1634, allocations: 0 / 400.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1634, allocations: 7.984 kB / 400.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004513/0.1638, allocations: 248.6 kB / 400.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.164, allocations: 112.7 kB / 400.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.164, allocations: 4 kB / 400.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.1641, allocations: 11.98 kB / 400.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.098e-05/0.1642, allocations: 16.03 kB / 400.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.1642, allocations: 11.97 kB / 400.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003125/0.1645, allocations: 275 kB / 401.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1645, allocations: 0 / 401.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003375/0.1649, allocations: 64.17 kB / 401.2 MB, free: 11.78 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.001761/0.1667, allocations: 1.126 MB / 402.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003772/0.1671, allocations: 148.2 kB / 402.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1671, allocations: 0 / 402.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.1672, allocations: 75.84 kB / 402.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.1676, allocations: 69.23 kB / 402.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.1708, allocations: 2.905 MB / 405.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.1713, allocations: 0.7755 MB / 406.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001454/0.1714, allocations: 42.27 kB / 406.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.1716, allocations: 83.41 kB / 406.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of SimCode: time 2.204e-06/0.1716, allocations: 0 / 406.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.1922, allocations: 6.532 MB / 412.9 MB, free: 32 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.1924, allocations: 237.8 kB / 413.1 MB, free: 15.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.27, allocations: 0 / 413.1 MB, free: 15.8 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 & /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: