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.00105/0.00105, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001214/0.001214, allocations: 172.7 kB / 15.95 MB, free: 208 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.444/1.444, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05763/0.05763, allocations: 10.74 MB / 281.1 MB, free: 10.57 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.0005037/0.0005038, allocations: 12 kB / 341.6 MB, free: 23.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0851/0.08562, allocations: 50.01 MB / 391.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002142/0.08779, allocations: 1.645 MB / 393.3 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.08945, allocations: 1.097 MB / 394.4 MB, free: 3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.08959, allocations: 0 / 394.4 MB, free: 3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006692/0.09027, allocations: 255.4 kB / 394.6 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003389/0.09062, allocations: 167.5 kB / 394.8 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.09122, allocations: 243.5 kB / 395 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002978/0.09153, allocations: 303.2 kB / 395.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.09164, allocations: 44.31 kB / 395.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.09179, allocations: 115.5 kB / 395.5 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.09194, allocations: 127.5 kB / 395.6 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.09198, allocations: 8 kB / 395.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.09213, allocations: 79.89 kB / 395.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.09221, allocations: 67.73 kB / 395.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.378e-05/0.09229, allocations: 65.58 kB / 395.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002492/0.09254, allocations: 255.7 kB / 396.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.09255, allocations: 0 / 396.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09256, allocations: 3.938 kB / 396.1 MB, free: 1.293 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.09257, allocations: 0 / 396.1 MB, free: 1.293 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.0007743/0.09335, allocations: 0.6024 MB / 396.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.09338, allocations: 12.03 kB / 396.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.09344, allocations: 31.56 kB / 396.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.09378, allocations: 315.2 kB / 397 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.09381, allocations: 8.188 kB / 397 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.09384, allocations: 8 kB / 397 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.09411, allocations: 153.2 kB / 397.2 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.09412, allocations: 4 kB / 397.2 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.09415, allocations: 7.953 kB / 397.2 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.09416, allocations: 4 kB / 397.2 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.09432, allocations: 60.39 kB / 397.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006198/0.09495, allocations: 488.7 kB / 397.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.09526, allocations: 138.7 kB / 397.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.09539, allocations: 52.84 kB / 397.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.09542, allocations: 3.984 kB / 397.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.09566, allocations: 134.5 kB / 398.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.805e-06/0.09567, allocations: 7.984 kB / 398.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005001/0.09618, allocations: 265.1 kB / 398.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.09625, allocations: 106.8 kB / 398.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.09664, allocations: 380.5 kB / 398.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.09667, allocations: 33.7 kB / 398.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.09679, allocations: 160.4 kB / 399 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.09685, allocations: 39.45 kB / 399 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-06/0.09686, allocations: 4 kB / 399 MB, free: 14.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.09699, allocations: 350.8 kB / 399.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-05/0.09709, allocations: 39.98 kB / 399.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.09726, allocations: 148.6 kB / 399.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.09739, allocations: 63.88 kB / 399.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.09741, allocations: 3.984 kB / 399.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003421/0.09775, allocations: 217.1 kB / 399.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.09778, allocations: 7.938 kB / 399.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.09779, allocations: 4.25 kB / 399.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.09781, allocations: 8 kB / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.09794, allocations: 31.97 kB / 399.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.09796, allocations: 7.938 kB / 399.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.09808, allocations: 23.78 kB / 399.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.0981, allocations: 8 kB / 399.9 MB, free: 13.13 MB / 302.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,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd,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 (26): * Single equations (assignments): 26 * 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.0002115/0.09832, allocations: 187.9 kB / 400.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.09836, allocations: 27.62 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.913e-05/0.09842, allocations: 31.08 kB / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.09843, allocations: 0 / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.09844, allocations: 0 / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.09845, allocations: 4 kB / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.09871, allocations: 297.3 kB / 400.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.09872, allocations: 0 / 400.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.487e-05/0.09876, allocations: 11.98 kB / 400.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.09876, allocations: 0 / 400.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.09879, allocations: 16.12 kB / 400.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.0988, allocations: 0 / 400.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.0988, allocations: 0 / 400.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.09918, allocations: 244.6 kB / 400.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.379e-05/0.09927, allocations: 108.7 kB / 400.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.09932, allocations: 8 kB / 400.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.09941, allocations: 15.98 kB / 400.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.09947, allocations: 11.98 kB / 400.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.0995, allocations: 8 kB / 400.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002819/0.09978, allocations: 275 kB / 401.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09979, allocations: 0 / 401.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.1001, allocations: 67.92 kB / 401.2 MB, free: 11.75 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: 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 (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.000963/0.1011, allocations: 438.5 kB / 401.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003309/0.1014, allocations: 151.8 kB / 401.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1014, allocations: 0 / 401.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.1016, allocations: 71.91 kB / 401.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.102, allocations: 72.95 kB / 401.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007498/0.1027, allocations: 0.4888 MB / 402.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.1031, allocations: 0.7638 MB / 403.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1032, allocations: 38.27 kB / 403.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.1033, allocations: 35.42 kB / 403.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1033, allocations: 4 kB / 403.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of Templates: time 0.007243/0.1105, allocations: 3.743 MB / 407 MB, free: 6.004 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: