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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08866/0.08866, allocations: 10.66 MB / 18.73 MB, free: 1.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.3 MB / 226.9 MB, free: 7.984 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 90.42 kB / 277.3 MB, free: 5.516 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.516e-05/1.517e-05, allocations: 0 / 333.5 MB, free: 28.51 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 50 MB / 383.5 MB, free: 10.46 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3864/0.4973, allocations: 80.92 MB / 464.4 MB, free: 3.941 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.4977, allocations: 89.64 kB / 464.5 MB, free: 3.898 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02704/0.5247, allocations: 9.203 MB / 473.7 MB, free: 12.29 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5248, allocations: 0 / 473.7 MB, free: 12.29 MB / 346.8 MB Notification: Performance of Transformations before backend: time 4.942e-05/0.5248, allocations: 4 kB / 473.7 MB, free: 12.29 MB / 346.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.001221/0.5261, allocations: 0.5791 MB / 474.3 MB, free: 11.66 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.5261, allocations: 11.97 kB / 474.3 MB, free: 11.65 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.5263, allocations: 39.56 kB / 474.4 MB, free: 11.61 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006766/0.527, allocations: 337.7 kB / 474.7 MB, free: 11.29 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.527, allocations: 4 kB / 474.7 MB, free: 11.28 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.5271, allocations: 8 kB / 474.7 MB, free: 11.27 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001623/0.5272, allocations: 62.73 kB / 474.8 MB, free: 11.23 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.5275, allocations: 147.7 kB / 474.9 MB, free: 11.1 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.5275, allocations: 0 / 474.9 MB, free: 11.1 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.5275, allocations: 7.5 kB / 474.9 MB, free: 11.1 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.5275, allocations: 4 kB / 474.9 MB, free: 11.09 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008161/0.5284, allocations: 471.8 kB / 475.4 MB, free: 10.67 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.5287, allocations: 134.7 kB / 475.5 MB, free: 10.57 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.68e-05/0.5288, allocations: 58.5 kB / 475.6 MB, free: 10.53 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.5288, allocations: 0 / 475.6 MB, free: 10.53 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.529, allocations: 140.2 kB / 475.7 MB, free: 10.4 MB / 346.8 MB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.5291, allocations: 0 / 475.7 MB, free: 10.4 MB / 346.8 MB Notification: Performance of matching and sorting (n=18): time 0.0005401/0.5296, allocations: 222.5 kB / 475.9 MB, free: 10.22 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.5297, allocations: 114.7 kB / 476 MB, free: 10.09 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004393/0.5301, allocations: 361.1 kB / 476.4 MB, free: 9.809 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.5302, allocations: 29.7 kB / 476.4 MB, free: 9.773 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.5303, allocations: 164.3 kB / 476.6 MB, free: 9.66 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/0.5303, allocations: 42.53 kB / 476.6 MB, free: 9.625 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.645e-06/0.5304, allocations: 0 / 476.6 MB, free: 9.625 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.5305, allocations: 344.7 kB / 477 MB, free: 9.293 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.127e-05/0.5306, allocations: 37.42 kB / 477 MB, free: 9.27 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.5307, allocations: 150.3 kB / 477.2 MB, free: 9.105 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.5309, allocations: 66.69 kB / 477.2 MB, free: 9.059 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5309, allocations: 0 / 477.2 MB, free: 9.059 MB / 346.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003263/0.5312, allocations: 197.2 kB / 477.4 MB, free: 8.895 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.5312, allocations: 4 kB / 477.4 MB, free: 8.891 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.5312, allocations: 4 kB / 477.4 MB, free: 8.887 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.5313, allocations: 7.953 kB / 477.4 MB, free: 8.879 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.5314, allocations: 36.16 kB / 477.5 MB, free: 8.844 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.5314, allocations: 8 kB / 477.5 MB, free: 8.836 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.5316, allocations: 11.94 kB / 477.5 MB, free: 8.824 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.5316, allocations: 11.88 kB / 477.5 MB, free: 8.816 MB / 346.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.0001776/0.5318, allocations: 126.1 kB / 477.6 MB, free: 8.691 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/0.5319, allocations: 39 kB / 477.7 MB, free: 8.656 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004873/0.5324, allocations: 248.6 kB / 477.9 MB, free: 8.461 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.5324, allocations: 4 kB / 477.9 MB, free: 8.457 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5324, allocations: 0 / 477.9 MB, free: 8.457 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.5324, allocations: 3.953 kB / 477.9 MB, free: 8.453 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.5327, allocations: 289.4 kB / 478.2 MB, free: 8.18 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5327, allocations: 4.125 kB / 478.2 MB, free: 8.176 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.092e-05/0.5328, allocations: 11.98 kB / 478.2 MB, free: 8.164 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.5328, allocations: 4 kB / 478.2 MB, free: 8.16 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.5328, allocations: 4 kB / 478.2 MB, free: 8.156 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.5328, allocations: 7.938 kB / 478.2 MB, free: 8.148 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5328, allocations: 0 / 478.2 MB, free: 8.148 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004305/0.5333, allocations: 279.6 kB / 478.5 MB, free: 7.906 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.5334, allocations: 123 kB / 478.6 MB, free: 7.773 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.234e-05/0.5335, allocations: 3.188 kB / 478.6 MB, free: 7.773 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.5336, allocations: 11.98 kB / 478.6 MB, free: 7.762 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.5337, allocations: 15.98 kB / 478.6 MB, free: 7.746 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.5337, allocations: 7.062 kB / 478.6 MB, free: 7.742 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0003091/0.534, allocations: 290.7 kB / 478.9 MB, free: 7.527 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.534, allocations: 0 / 478.9 MB, free: 7.527 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003793/0.5344, allocations: 64.06 kB / 479 MB, free: 7.465 MB / 346.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.000915/0.5353, allocations: 389.7 kB / 479.4 MB, free: 7.086 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0003529/0.5357, allocations: 152.9 kB / 479.5 MB, free: 6.977 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5357, allocations: 0 / 479.5 MB, free: 6.977 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.5359, allocations: 74.31 kB / 479.6 MB, free: 6.93 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.5364, allocations: 66.83 kB / 479.7 MB, free: 6.875 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008814/0.5373, allocations: 386.6 kB / 480 MB, free: 6.535 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.5377, allocations: 0.7856 MB / 480.8 MB, free: 5.73 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.5379, allocations: 46.05 kB / 480.9 MB, free: 5.688 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.538, allocations: 33.98 kB / 480.9 MB, free: 5.656 MB / 346.8 MB Notification: Performance of SimCode: time 2.474e-06/0.538, allocations: 0 / 480.9 MB, free: 5.656 MB / 346.8 MB Notification: Performance of Templates: time 0.008908/0.5469, allocations: 3.881 MB / 484.8 MB, free: 1.785 MB / 346.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)