Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009974/0.0009975, allocations: 105.8 kB / 16.41 MB, free: 6.457 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.0009755/0.0009755, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.181/1.181, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05414/0.05414, allocations: 10.74 MB / 281.3 MB, free: 1.285 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.001299/0.001299, allocations: 72.91 kB / 391.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06905/0.07036, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002422/0.07282, allocations: 1.986 MB / 442.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.07413, allocations: 1.17 MB / 443.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.07423, allocations: 7.938 kB / 443.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005946/0.07484, allocations: 271.2 kB / 444 MB, free: 376 kB / 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.0003091/0.07516, allocations: 210.5 kB / 444.2 MB, free: 168 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.07572, allocations: 275.2 kB / 444.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.07605, allocations: 343.2 kB / 444.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.07618, allocations: 48.31 kB / 444.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.07634, allocations: 147.4 kB / 445 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.0765, allocations: 131.4 kB / 445.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.07654, allocations: 20 kB / 445.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.07674, allocations: 111.9 kB / 445.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.585e-05/0.07683, allocations: 79.73 kB / 445.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.07695, allocations: 123.2 kB / 445.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.07731, allocations: 350.9 kB / 445.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.07732, allocations: 0 / 445.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.07733, allocations: 0 / 445.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.07734, allocations: 0 / 445.8 MB, free: 14.57 MB / 334.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.000821/0.07817, allocations: 0.6458 MB / 446.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.0782, allocations: 15.89 kB / 446.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.509e-05/0.07828, allocations: 32.56 kB / 446.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.07869, allocations: 328.1 kB / 446.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.07872, allocations: 12.12 kB / 446.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.07876, allocations: 12 kB / 446.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.07903, allocations: 156 kB / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.07905, allocations: 4 kB / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.07907, allocations: 0 / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.07908, allocations: 4 kB / 447 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.07925, allocations: 67.91 kB / 447 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.07985, allocations: 476.4 kB / 447.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.08019, allocations: 142.7 kB / 447.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.08031, allocations: 56.84 kB / 447.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.08034, allocations: 3.984 kB / 447.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.08058, allocations: 129.6 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.026e-06/0.08059, allocations: 4 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005291/0.08113, allocations: 261.2 kB / 448.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.08119, allocations: 114.8 kB / 448.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.08157, allocations: 384.4 kB / 448.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.0816, allocations: 33.7 kB / 448.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.08171, allocations: 152.4 kB / 448.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.839e-05/0.08176, allocations: 43.53 kB / 448.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.186e-05/0.08182, allocations: 53.7 kB / 448.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.08195, allocations: 346.7 kB / 449.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.08206, allocations: 43.98 kB / 449.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.08223, allocations: 144.1 kB / 449.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.08252, allocations: 188.3 kB / 449.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.08253, allocations: 0 / 449.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003668/0.08291, allocations: 225.2 kB / 449.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.08293, allocations: 11.98 kB / 449.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.08294, allocations: 0 / 449.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.08296, allocations: 7.938 kB / 449.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.08308, allocations: 27.98 kB / 449.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.0831, allocations: 7.938 kB / 449.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.08321, allocations: 19.84 kB / 449.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.08323, allocations: 11.94 kB / 449.9 MB, free: 10.14 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001862/0.08342, allocations: 180.2 kB / 450 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.392e-05/0.08347, allocations: 27.67 kB / 450.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.864e-05/0.08354, allocations: 35.06 kB / 450.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.08355, allocations: 3.938 kB / 450.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.08356, allocations: 0 / 450.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.08357, allocations: 3.984 kB / 450.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.08382, allocations: 297.4 kB / 450.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.08383, allocations: 0 / 450.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-05/0.08387, allocations: 11.98 kB / 450.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.08388, allocations: 0 / 450.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.08389, allocations: 0 / 450.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.0839, allocations: 4 kB / 450.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.08391, allocations: 0 / 450.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.08429, allocations: 253.4 kB / 450.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/0.08437, allocations: 104.8 kB / 450.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.08443, allocations: 15.98 kB / 450.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.08452, allocations: 8 kB / 450.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.08457, allocations: 7.984 kB / 450.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.0846, allocations: 15.98 kB / 450.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.08486, allocations: 279 kB / 451.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08487, allocations: 0 / 451.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.08516, allocations: 63.98 kB / 451.1 MB, free: 8.754 MB / 334.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0008923/0.08606, allocations: 447 kB / 451.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.08639, allocations: 147.7 kB / 451.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.0864, allocations: 0 / 451.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.08655, allocations: 75.84 kB / 451.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.08695, allocations: 73.36 kB / 451.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006626/0.08762, allocations: 494.1 kB / 452.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.08793, allocations: 0.7634 MB / 453.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.088, allocations: 35.42 kB / 453.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.088, allocations: 0 / 453.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of Templates: time 0.005778/0.09378, allocations: 4.344 MB / 457.5 MB, free: 2.465 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)