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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06042/0.06042, allocations: 10.66 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.3 MB / 226.9 MB, free: 7.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001207/0.001207, allocations: 90.47 kB / 277.3 MB, free: 5.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.833e-05, allocations: 4 kB / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 50 MB / 383.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4905/0.601, allocations: 80.96 MB / 464.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.6014, allocations: 83.77 kB / 464.7 MB, free: 3.363 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03517/0.6365, allocations: 9.074 MB / 473.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6366, allocations: 0 / 473.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.376e-05/0.6367, allocations: 15.88 kB / 473.8 MB, free: 11.87 MB / 346.7 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.001048/0.6377, allocations: 0.5591 MB / 474.3 MB, free: 11.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.6378, allocations: 12.03 kB / 474.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.6379, allocations: 31.58 kB / 474.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007338/0.6386, allocations: 333 kB / 474.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.6387, allocations: 7.125 kB / 474.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.6387, allocations: 15.98 kB / 474.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002193/0.639, allocations: 58.17 kB / 474.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.6393, allocations: 139.3 kB / 474.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.6393, allocations: 0 / 474.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.6394, allocations: 0 / 474.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.6394, allocations: 3.953 kB / 474.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009372/0.6403, allocations: 464.4 kB / 475.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.6406, allocations: 121.4 kB / 475.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.6408, allocations: 58.8 kB / 475.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.6408, allocations: 11.98 kB / 475.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002949/0.6411, allocations: 119.7 kB / 475.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.164e-06/0.6412, allocations: 4 kB / 475.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007136/0.6419, allocations: 207.4 kB / 475.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.642, allocations: 106.8 kB / 476 MB, free: 9.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006274/0.6426, allocations: 337.4 kB / 476.3 MB, free: 9.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.6427, allocations: 29.7 kB / 476.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.6428, allocations: 150.5 kB / 476.5 MB, free: 9.328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.758e-05/0.6429, allocations: 42.77 kB / 476.5 MB, free: 9.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.6429, allocations: 0 / 476.5 MB, free: 9.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.6431, allocations: 341 kB / 476.9 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.6432, allocations: 46.5 kB / 476.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.6435, allocations: 141.1 kB / 477 MB, free: 8.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.6436, allocations: 60.62 kB / 477.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.6437, allocations: 0 / 477.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004379/0.6441, allocations: 191 kB / 477.3 MB, free: 8.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.6441, allocations: 11.94 kB / 477.3 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.6442, allocations: 8.25 kB / 477.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.6442, allocations: 8 kB / 477.3 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.6444, allocations: 31.17 kB / 477.3 MB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.6444, allocations: 4 kB / 477.4 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.6446, allocations: 19.84 kB / 477.4 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.6447, allocations: 7.984 kB / 477.4 MB, free: 8.492 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = false ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(fixed = false ) "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 () * 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.0002169/0.6449, allocations: 138 kB / 477.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005368/0.6455, allocations: 213.2 kB / 477.7 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.6455, allocations: 31.58 kB / 477.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005768/0.6461, allocations: 227.5 kB / 478 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.6462, allocations: 4 kB / 478 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.6462, allocations: 3.953 kB / 478 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.6462, allocations: 0 / 478 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003835/0.6466, allocations: 270.6 kB / 478.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6466, allocations: 8 kB / 478.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.6467, allocations: 11.94 kB / 478.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.6467, allocations: 0 / 478.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.6467, allocations: 11.23 kB / 478.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.6467, allocations: 0 / 478.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6467, allocations: 0 / 478.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000537/0.6473, allocations: 253 kB / 478.5 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.6474, allocations: 115.5 kB / 478.6 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/0.6475, allocations: 8 kB / 478.6 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.6477, allocations: 11.98 kB / 478.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.6477, allocations: 14.92 kB / 478.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.6478, allocations: 11.23 kB / 478.7 MB, free: 7.289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003538/0.6481, allocations: 256.7 kB / 478.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6481, allocations: 0 / 478.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005305/0.6487, allocations: 75.22 kB / 479 MB, free: 7.027 MB / 346.7 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.002025/0.6507, allocations: 1.073 MB / 480.1 MB, free: 5.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004192/0.6512, allocations: 142.1 kB / 480.2 MB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6512, allocations: 4.062 kB / 480.2 MB, free: 5.879 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.6514, allocations: 72.11 kB / 480.3 MB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.6519, allocations: 62.66 kB / 480.4 MB, free: 5.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.6533, allocations: 443.8 kB / 480.8 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.6538, allocations: 0.7777 MB / 481.6 MB, free: 4.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.654, allocations: 44.61 kB / 481.6 MB, free: 4.531 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.6542, allocations: 88.53 kB / 481.7 MB, free: 4.496 MB / 346.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6542, allocations: 4 kB / 481.7 MB, free: 4.492 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04032/0.6946, allocations: 6.081 MB / 487.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/0.6949, allocations: 192.4 kB / 488 MB, free: 14.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.09, allocations: 0 / 488 MB, free: 14.22 MB / 362.7 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)