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/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 110 kB / 16.37 MB, free: 6.469 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.001192/0.001192, allocations: 195.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05775/0.05775, allocations: 10.75 MB / 281.3 MB, free: 1.312 MB / 222.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.001679/0.00168, allocations: 71.91 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3437, allocations: 49.01 MB / 391 MB, free: 49.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.004166/0.348, allocations: 1.994 MB / 393 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.35, allocations: 1.183 MB / 394.2 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.3501, allocations: 2.312 kB / 394.2 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009517/0.3511, allocations: 302.2 kB / 394.5 MB, free: 47.69 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004983/0.3516, allocations: 206.8 kB / 394.7 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.3525, allocations: 279.4 kB / 395 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005588/0.353, allocations: 355.6 kB / 395.3 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.3533, allocations: 54.72 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.3535, allocations: 147.5 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.3537, allocations: 149.8 kB / 395.6 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.3538, allocations: 17.88 kB / 395.7 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.3541, allocations: 113.9 kB / 395.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3542, allocations: 97.5 kB / 395.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.3544, allocations: 126.8 kB / 396 MB, free: 47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.3551, allocations: 383.2 kB / 396.4 MB, free: 46.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3551, allocations: 0.6562 kB / 396.4 MB, free: 46.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3551, allocations: 0 / 396.4 MB, free: 46.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.3551, allocations: 0 / 396.4 MB, free: 46.84 MB / 318.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.001197/0.3563, allocations: 0.6655 MB / 397 MB, free: 46.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.3564, allocations: 9.844 kB / 397 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.3565, allocations: 45.44 kB / 397.1 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000492/0.357, allocations: 335.2 kB / 397.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.357, allocations: 14.47 kB / 397.4 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.357, allocations: 16.67 kB / 397.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.3575, allocations: 151.9 kB / 397.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.3575, allocations: 0 / 397.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.3575, allocations: 9.797 kB / 397.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.3576, allocations: 4.141 kB / 397.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.3579, allocations: 71.88 kB / 397.7 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.3592, allocations: 490.3 kB / 398.2 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000677/0.3599, allocations: 146 kB / 398.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.3601, allocations: 60.38 kB / 398.4 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.3602, allocations: 3.141 kB / 398.4 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004818/0.3607, allocations: 139.9 kB / 398.5 MB, free: 45.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.595e-06/0.3607, allocations: 4 kB / 398.5 MB, free: 45.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009366/0.3616, allocations: 282.8 kB / 398.8 MB, free: 45.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.3617, allocations: 115.4 kB / 398.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007325/0.3625, allocations: 439.6 kB / 399.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.3625, allocations: 33.3 kB / 399.4 MB, free: 44.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3627, allocations: 163.9 kB / 399.5 MB, free: 44.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.446e-05/0.3627, allocations: 42.34 kB / 399.6 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.3628, allocations: 52.94 kB / 399.6 MB, free: 44.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3629, allocations: 348 kB / 399.9 MB, free: 44.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.3631, allocations: 47.95 kB / 400 MB, free: 44.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.3634, allocations: 157.8 kB / 400.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.3639, allocations: 189.2 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3639, allocations: 1.125 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000767/0.3647, allocations: 234.8 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.3647, allocations: 5.719 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3648, allocations: 2.344 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.146e-05/0.3648, allocations: 3.625 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.365, allocations: 32.11 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-05/0.365, allocations: 4.312 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.3652, allocations: 27.14 kB / 400.6 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.3653, allocations: 12.75 kB / 400.6 MB, free: 43.74 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" 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: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004229/0.3657, allocations: 194.7 kB / 400.8 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.3659, allocations: 29.5 kB / 400.9 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.366, allocations: 35.72 kB / 400.9 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.366, allocations: 2.031 kB / 400.9 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.366, allocations: 0 / 400.9 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3661, allocations: 1.312 kB / 400.9 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005541/0.3666, allocations: 314.8 kB / 401.2 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3666, allocations: 1.125 kB / 401.2 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-05/0.3667, allocations: 6.469 kB / 401.2 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.964e-06/0.3667, allocations: 5.047 kB / 401.2 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3668, allocations: 2.234 kB / 401.2 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.3668, allocations: 1.094 kB / 401.2 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3668, allocations: 4.984 kB / 401.2 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006607/0.3675, allocations: 272.3 kB / 401.5 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.3676, allocations: 104.2 kB / 401.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.3677, allocations: 7.188 kB / 401.6 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.3678, allocations: 13.52 kB / 401.6 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.3679, allocations: 9.547 kB / 401.6 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.245e-05/0.368, allocations: 6.875 kB / 401.6 MB, free: 42.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005735/0.3685, allocations: 327 kB / 402 MB, free: 42.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3685, allocations: 0 / 402 MB, free: 42.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000591/0.3691, allocations: 64.67 kB / 402 MB, free: 42.71 MB / 318.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: 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,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 (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001511/0.3707, allocations: 455.1 kB / 402.5 MB, free: 42.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005314/0.3712, allocations: 150.3 kB / 402.6 MB, free: 42.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3712, allocations: 0 / 402.6 MB, free: 42.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.3715, allocations: 75.69 kB / 402.7 MB, free: 42.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.3721, allocations: 84.78 kB / 402.8 MB, free: 42.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.3732, allocations: 0.5038 MB / 403.3 MB, free: 42.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.3735, allocations: 0.7708 MB / 404 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.3737, allocations: 50.19 kB / 404.1 MB, free: 41.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.782e-05/0.3738, allocations: 30.25 kB / 404.1 MB, free: 41.26 MB / 318.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3738, allocations: 0 / 404.1 MB, free: 41.26 MB / 318.1 MB Notification: Performance of Templates: time 0.0121/0.3859, allocations: 4.283 MB / 408.4 MB, free: 38.95 MB / 318.1 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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)