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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008603/0.0008603, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.000868/0.0008684, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.4 MB / 222.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05389/0.05389, allocations: 10.75 MB / 281.1 MB, free: 10.44 MB / 238.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.0004878/0.0004879, allocations: 12.22 kB / 341.6 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.07686, allocations: 50.01 MB / 391.6 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002486/0.0794, allocations: 1.637 MB / 393.2 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.08116, allocations: 1.069 MB / 394.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.08137, allocations: 7.938 kB / 394.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007795/0.08216, allocations: 255.4 kB / 394.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.08262, allocations: 163.6 kB / 394.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000746/0.08338, allocations: 239.4 kB / 395 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.08375, allocations: 211.6 kB / 395.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.08387, allocations: 44.36 kB / 395.2 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.08403, allocations: 123.5 kB / 395.3 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.08418, allocations: 119.5 kB / 395.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.08421, allocations: 8 kB / 395.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.08441, allocations: 79.86 kB / 395.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.371e-05/0.08451, allocations: 67.75 kB / 395.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.08457, allocations: 65.58 kB / 395.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.08487, allocations: 283.6 kB / 395.9 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.08488, allocations: 0 / 395.9 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.08489, allocations: 4 kB / 395.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.08491, allocations: 0 / 395.9 MB, free: 1.414 MB / 286.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.0008312/0.08574, allocations: 0.6184 MB / 396.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.08578, allocations: 8.031 kB / 396.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.08585, allocations: 31.62 kB / 396.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.08624, allocations: 315.1 kB / 396.9 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.08627, allocations: 8.188 kB / 396.9 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.0863, allocations: 16 kB / 396.9 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.08657, allocations: 149.3 kB / 397.1 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.08659, allocations: 0 / 397.1 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.08661, allocations: 7.953 kB / 397.1 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.08662, allocations: 0 / 397.1 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.08678, allocations: 76.27 kB / 397.2 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/0.08741, allocations: 492.8 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.08778, allocations: 154.6 kB / 397.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.08782, allocations: 4 kB / 397.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.08806, allocations: 130.2 kB / 397.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.956e-06/0.08807, allocations: 3.938 kB / 397.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005569/0.08864, allocations: 370.2 kB / 398.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.0887, allocations: 110.8 kB / 398.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.0891, allocations: 412.5 kB / 398.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.08914, allocations: 37.69 kB / 398.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.08924, allocations: 160.4 kB / 399 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.034e-05/0.08929, allocations: 47.58 kB / 399 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.635e-06/0.0893, allocations: 4 kB / 399 MB, free: 14.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.08942, allocations: 342.8 kB / 399.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.08953, allocations: 52.2 kB / 399.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.0897, allocations: 152.4 kB / 399.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.08984, allocations: 55.98 kB / 399.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.08985, allocations: 4 kB / 399.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003456/0.0902, allocations: 224.9 kB / 399.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.09023, allocations: 11.98 kB / 399.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.09024, allocations: 4 kB / 399.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.09026, allocations: 4.031 kB / 399.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.09037, allocations: 35.92 kB / 399.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.09038, allocations: 4 kB / 399.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.0905, allocations: 24.09 kB / 399.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.09053, allocations: 15.98 kB / 400 MB, free: 13.09 MB / 302.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,$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.0001911/0.09072, allocations: 184.4 kB / 400.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.09077, allocations: 35.56 kB / 400.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.943e-05/0.09084, allocations: 35.27 kB / 400.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.09084, allocations: 0 / 400.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.09086, allocations: 4 kB / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.09086, allocations: 0 / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.0911, allocations: 305.4 kB / 400.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.09111, allocations: 0 / 400.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.09115, allocations: 8 kB / 400.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.09116, allocations: 0 / 400.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.09118, allocations: 0 / 400.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.09118, allocations: 7.984 kB / 400.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.09119, allocations: 3.938 kB / 400.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000375/0.09157, allocations: 259.1 kB / 400.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.09166, allocations: 124.6 kB / 400.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.09171, allocations: 4 kB / 400.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-05/0.09181, allocations: 15.92 kB / 400.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.09186, allocations: 15.98 kB / 400.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.09189, allocations: 4 kB / 400.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002767/0.09217, allocations: 307 kB / 401.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.09218, allocations: 0 / 401.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.09247, allocations: 72.02 kB / 401.3 MB, free: 11.64 MB / 302.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 (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.0009115/0.09339, allocations: 434.9 kB / 401.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.09377, allocations: 151.8 kB / 401.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.09378, allocations: 0.5 kB / 401.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.09393, allocations: 75.97 kB / 402 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.09427, allocations: 74.14 kB / 402 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.095, allocations: 0.5386 MB / 402.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.09531, allocations: 0.7794 MB / 403.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.09544, allocations: 46.95 kB / 403.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.09551, allocations: 35.42 kB / 403.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09551, allocations: 0 / 403.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of Templates: time 0.007015/0.1025, allocations: 3.879 MB / 407.3 MB, free: 5.68 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: