Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.001512/0.001512, allocations: 174.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06028/0.06028, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.2 MB / 232.1 MB, free: 12.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009747/0.0009749, allocations: 91.59 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 5.053e-05/5.055e-05, allocations: 4 kB / 340.6 MB, free: 3.5 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.322, allocations: 49.97 MB / 390.6 MB, free: 35.71 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.4385, allocations: 81.3 MB / 471.9 MB, free: 2.305 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.4389, allocations: 83.95 kB / 471.9 MB, free: 2.223 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02694/0.4658, allocations: 9.28 MB / 481.2 MB, free: 8.941 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4659, allocations: 4 kB / 481.2 MB, free: 8.938 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.752e-05/0.4659, allocations: 11.94 kB / 481.2 MB, free: 8.926 MB / 362.8 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.001162/0.4671, allocations: 0.5682 MB / 481.8 MB, free: 8.297 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.4672, allocations: 12.03 kB / 481.8 MB, free: 8.285 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.387e-05/0.4673, allocations: 42.55 kB / 481.9 MB, free: 8.234 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.4674, allocations: 39.52 kB / 481.9 MB, free: 8.195 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007201/0.4681, allocations: 340 kB / 482.2 MB, free: 7.82 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.4682, allocations: 16.17 kB / 482.2 MB, free: 7.805 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.4682, allocations: 12 kB / 482.3 MB, free: 7.793 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.4686, allocations: 147.9 kB / 482.4 MB, free: 7.637 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.4686, allocations: 4 kB / 482.4 MB, free: 7.633 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.4686, allocations: 7.984 kB / 482.4 MB, free: 7.625 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.4686, allocations: 4 kB / 482.4 MB, free: 7.621 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.4688, allocations: 64.22 kB / 482.5 MB, free: 7.559 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.4697, allocations: 0.5048 MB / 483 MB, free: 7.004 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.4701, allocations: 142.8 kB / 483.1 MB, free: 6.855 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.4702, allocations: 64.8 kB / 483.2 MB, free: 6.789 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.4703, allocations: 0 / 483.2 MB, free: 6.789 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.4705, allocations: 132.3 kB / 483.3 MB, free: 6.648 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 2.414e-06/0.4705, allocations: 8 kB / 483.3 MB, free: 6.641 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004876/0.471, allocations: 230.9 kB / 483.6 MB, free: 6.41 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.798e-05/0.4711, allocations: 110.8 kB / 483.7 MB, free: 6.277 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005178/0.4717, allocations: 378.7 kB / 484 MB, free: 5.898 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.4717, allocations: 33.7 kB / 484.1 MB, free: 5.859 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.4719, allocations: 160.4 kB / 484.2 MB, free: 5.695 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-05/0.4719, allocations: 51.52 kB / 484.3 MB, free: 5.645 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.308e-06/0.4719, allocations: 4 kB / 484.3 MB, free: 5.641 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4721, allocations: 350.8 kB / 484.6 MB, free: 5.289 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4722, allocations: 44.23 kB / 484.7 MB, free: 5.242 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.4724, allocations: 145.4 kB / 484.8 MB, free: 5.059 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.4726, allocations: 67.91 kB / 484.9 MB, free: 4.992 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4726, allocations: 0 / 484.9 MB, free: 4.992 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004072/0.473, allocations: 225 kB / 485.1 MB, free: 4.766 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.473, allocations: 8 kB / 485.1 MB, free: 4.758 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.4731, allocations: 0 / 485.1 MB, free: 4.758 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4731, allocations: 4 kB / 485.1 MB, free: 4.754 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.4732, allocations: 39.91 kB / 485.1 MB, free: 4.715 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.4733, allocations: 7.938 kB / 485.1 MB, free: 4.707 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.4734, allocations: 20.19 kB / 485.2 MB, free: 4.688 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.4735, allocations: 15.94 kB / 485.2 MB, free: 4.672 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" 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: 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 () * 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.0001999/0.4737, allocations: 132.3 kB / 485.3 MB, free: 4.539 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.4737, allocations: 31.58 kB / 485.3 MB, free: 4.508 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004781/0.4742, allocations: 248.5 kB / 485.6 MB, free: 4.262 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4742, allocations: 7.953 kB / 485.6 MB, free: 4.254 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4743, allocations: 0 / 485.6 MB, free: 4.254 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4743, allocations: 3.984 kB / 485.6 MB, free: 4.25 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004549/0.4747, allocations: 321.5 kB / 485.9 MB, free: 3.887 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4748, allocations: 4 kB / 485.9 MB, free: 3.883 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.877e-05/0.4748, allocations: 8 kB / 485.9 MB, free: 3.875 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.4748, allocations: 0 / 485.9 MB, free: 3.875 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.4749, allocations: 11.98 kB / 485.9 MB, free: 3.863 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.4749, allocations: 0 / 485.9 MB, free: 3.863 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4749, allocations: 7.891 kB / 485.9 MB, free: 3.855 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004425/0.4753, allocations: 270.4 kB / 486.2 MB, free: 3.574 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4755, allocations: 120.7 kB / 486.3 MB, free: 3.438 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.4755, allocations: 8 kB / 486.3 MB, free: 3.43 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.4756, allocations: 11.98 kB / 486.3 MB, free: 3.418 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.4757, allocations: 11.98 kB / 486.4 MB, free: 3.406 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.4758, allocations: 15.94 kB / 486.4 MB, free: 3.391 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.000383/0.4761, allocations: 298.1 kB / 486.7 MB, free: 3.094 MB / 362.8 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4762, allocations: 4 kB / 486.7 MB, free: 3.09 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004167/0.4766, allocations: 80.05 kB / 486.7 MB, free: 3.012 MB / 362.8 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * 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.001794/0.4784, allocations: 1.113 MB / 487.9 MB, free: 1.945 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003571/0.4787, allocations: 163.8 kB / 488 MB, free: 1.785 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4788, allocations: 4 kB / 488 MB, free: 1.781 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.4789, allocations: 83.91 kB / 488.1 MB, free: 1.699 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.4793, allocations: 64.06 kB / 488.2 MB, free: 1.637 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.4805, allocations: 0.4888 MB / 488.7 MB, free: 1.113 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.481, allocations: 0.7838 MB / 489.4 MB, free: 308 kB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.4812, allocations: 54.3 kB / 489.5 MB, free: 252 kB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.4814, allocations: 95.39 kB / 489.6 MB, free: 160 kB / 362.8 MB Notification: Performance of SimCode: time 4.21e-07/0.4814, allocations: 0 / 489.6 MB, free: 160 kB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02342/0.5048, allocations: 7.05 MB / 496.6 MB, free: 9.141 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002472/0.5052, allocations: 220.7 kB / 496.8 MB, free: 8.918 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.126/2.631, allocations: 7.953 kB / 496.9 MB, free: 8.91 MB / 378.8 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)