Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006169/0.006169, allocations: 170.8 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05563/0.05563, allocations: 10.74 MB / 26.59 MB, free: 2.266 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.487/1.487, allocations: 205.4 MB / 235.2 MB, free: 192 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009064/0.0009063, allocations: 80.28 kB / 285.9 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 12 kB / 346.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 49.99 MB / 396.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3649/0.4791, allocations: 81.38 MB / 477.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4794, allocations: 87.66 kB / 477.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02259/0.502, allocations: 9.358 MB / 487.2 MB, free: 7.082 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.5021, allocations: 0 / 487.2 MB, free: 7.082 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.5021, allocations: 4 kB / 487.2 MB, free: 7.078 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.0009397/0.503, allocations: 0.6514 MB / 487.9 MB, free: 6.387 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.5031, allocations: 8.031 kB / 487.9 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.806e-05/0.5032, allocations: 31.62 kB / 487.9 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.5037, allocations: 342.4 kB / 488.3 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.5038, allocations: 7.5 kB / 488.3 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.5038, allocations: 11.38 kB / 488.3 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.5041, allocations: 164.6 kB / 488.4 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.5041, allocations: 0.5 kB / 488.4 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.5041, allocations: 7.75 kB / 488.4 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5042, allocations: 0 / 488.4 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.5043, allocations: 75.7 kB / 488.5 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006901/0.505, allocations: 0.5084 MB / 489 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003743/0.5054, allocations: 154.3 kB / 489.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.5054, allocations: 0 / 489.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.5057, allocations: 146.9 kB / 489.3 MB, free: 5.086 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 2.235e-06/0.5057, allocations: 0 / 489.3 MB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005901/0.5063, allocations: 374.2 kB / 489.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.5063, allocations: 114.8 kB / 489.8 MB, free: 4.629 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.5067, allocations: 402.5 kB / 490.2 MB, free: 4.316 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.5068, allocations: 36.77 kB / 490.2 MB, free: 4.277 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/0.5069, allocations: 168.2 kB / 490.4 MB, free: 4.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.5069, allocations: 38.97 kB / 490.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/0.5069, allocations: 7.562 kB / 490.4 MB, free: 4.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.792e-05/0.507, allocations: 346.7 kB / 490.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.709e-05/0.5071, allocations: 45.33 kB / 490.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.5072, allocations: 153.4 kB / 491 MB, free: 3.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.5074, allocations: 74.44 kB / 491 MB, free: 3.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.5074, allocations: 0 / 491 MB, free: 3.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000338/0.5077, allocations: 235.9 kB / 491.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.5078, allocations: 8.203 kB / 491.3 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.5078, allocations: 8 kB / 491.3 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.5078, allocations: 8.031 kB / 491.3 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5079, allocations: 35.05 kB / 491.3 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.5079, allocations: 7.938 kB / 491.3 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.508, allocations: 18.08 kB / 491.3 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.5081, allocations: 11.38 kB / 491.4 MB, free: 3.273 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(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: 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 () * Number of clocked 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.0002061/0.5083, allocations: 187.5 kB / 491.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.5083, allocations: 31.62 kB / 491.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004335/0.5088, allocations: 252.8 kB / 491.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.5088, allocations: 4 kB / 491.8 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.5088, allocations: 4.078 kB / 491.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5088, allocations: 4 kB / 491.8 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.5091, allocations: 326.5 kB / 492.2 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5091, allocations: 4 kB / 492.2 MB, free: 2.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.5091, allocations: 11.06 kB / 492.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.5091, allocations: 0 / 492.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.5091, allocations: 7.938 kB / 492.2 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.5092, allocations: 7.922 kB / 492.2 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5092, allocations: 0 / 492.2 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.5095, allocations: 275.7 kB / 492.5 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.5097, allocations: 130.5 kB / 492.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.5097, allocations: 11.17 kB / 492.6 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.5098, allocations: 8 kB / 492.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.54e-05/0.5099, allocations: 19.34 kB / 492.6 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.5099, allocations: 4 kB / 492.6 MB, free: 2.129 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002953/0.5102, allocations: 327.4 kB / 492.9 MB, free: 1.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5102, allocations: 0 / 492.9 MB, free: 1.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003629/0.5106, allocations: 83.27 kB / 493 MB, free: 1.812 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: 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) * Number of clocked states: 0 () * 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.0009937/0.5116, allocations: 453.7 kB / 493.5 MB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.512, allocations: 173.1 kB / 493.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.512, allocations: 0 / 493.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.5122, allocations: 82.47 kB / 493.7 MB, free: 1.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.5126, allocations: 79.62 kB / 493.8 MB, free: 1.156 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009719/0.5135, allocations: 0.5716 MB / 494.4 MB, free: 0.625 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.5138, allocations: 0.7823 MB / 495.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.5141, allocations: 54.94 kB / 495.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.5142, allocations: 31.06 kB / 495.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5142, allocations: 0 / 495.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of Templates: time 0.009404/0.5236, allocations: 4.228 MB / 499.5 MB, free: 11.53 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)