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.001064/0.001064, allocations: 100.5 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.001229/0.001229, 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.208/1.208, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05276/0.05276, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004553/0.0004554, allocations: 15.19 kB / 341.6 MB, free: 23.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07281/0.07328, allocations: 50.01 MB / 391.6 MB, free: 5.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002048/0.07536, allocations: 1.641 MB / 393.2 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.07687, allocations: 1.062 MB / 394.3 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.732e-05/0.07699, allocations: 7.938 kB / 394.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000666/0.07766, allocations: 239.4 kB / 394.5 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003186/0.07799, allocations: 163.6 kB / 394.7 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005745/0.07858, allocations: 247.4 kB / 394.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.07885, allocations: 207.6 kB / 395.1 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.07897, allocations: 32.39 kB / 395.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.07913, allocations: 115.5 kB / 395.3 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.07927, allocations: 115.5 kB / 395.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.0793, allocations: 8 kB / 395.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.07946, allocations: 75.88 kB / 395.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.07955, allocations: 67.73 kB / 395.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.07962, allocations: 61.58 kB / 395.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.07988, allocations: 251.7 kB / 395.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.07989, allocations: 0 / 395.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.0799, allocations: 4 kB / 395.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.07991, allocations: 0 / 395.9 MB, free: 1.523 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.0007745/0.08069, allocations: 0.603 MB / 396.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.08073, allocations: 11.97 kB / 396.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.0808, allocations: 31.62 kB / 396.5 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.08117, allocations: 307.2 kB / 396.8 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.0812, allocations: 8.188 kB / 396.8 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.08123, allocations: 11.98 kB / 396.8 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.0815, allocations: 149.2 kB / 397 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.08152, allocations: 4 kB / 397 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.08155, allocations: 15.94 kB / 397 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.08156, allocations: 4 kB / 397 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.08171, allocations: 64.28 kB / 397.1 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006114/0.08233, allocations: 488.7 kB / 397.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.08264, allocations: 142.7 kB / 397.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.08268, allocations: 3.984 kB / 397.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.08291, allocations: 126 kB / 397.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.08292, allocations: 0 / 397.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005353/0.08346, allocations: 350.2 kB / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.08353, allocations: 106.8 kB / 398.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.08391, allocations: 380.5 kB / 398.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.08395, allocations: 33.7 kB / 398.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.828e-05/0.08405, allocations: 152.4 kB / 398.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.0841, allocations: 51.44 kB / 398.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-06/0.08411, allocations: 0 / 398.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.08424, allocations: 350.8 kB / 399.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.08436, allocations: 39.98 kB / 399.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.08453, allocations: 149 kB / 399.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.08466, allocations: 63.86 kB / 399.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.08467, allocations: 0 / 399.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003512/0.08503, allocations: 221.1 kB / 399.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.08505, allocations: 4 kB / 399.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.08506, allocations: 4 kB / 399.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.08508, allocations: 4 kB / 399.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.0852, allocations: 28.17 kB / 399.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.08522, allocations: 11.94 kB / 399.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.08534, allocations: 23.84 kB / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.08537, allocations: 11.98 kB / 399.7 MB, free: 13.32 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.0001787/0.08555, allocations: 176.1 kB / 399.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.0856, allocations: 39.56 kB / 399.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.139e-05/0.08566, allocations: 27.08 kB / 400 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.08567, allocations: 4 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.08568, allocations: 0 / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.08569, allocations: 3.984 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.08593, allocations: 297.3 kB / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.08595, allocations: 3.984 kB / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.379e-05/0.08599, allocations: 7.938 kB / 400.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.086, allocations: 4 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.08602, allocations: 4 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.08602, allocations: 4 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.08603, allocations: 4 kB / 400.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.0864, allocations: 243.8 kB / 400.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.53e-05/0.08649, allocations: 112.7 kB / 400.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/0.08654, allocations: 8 kB / 400.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.08664, allocations: 7.984 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/0.08669, allocations: 19.98 kB / 400.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.08672, allocations: 7.984 kB / 400.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.08698, allocations: 275 kB / 401 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08699, allocations: 0 / 401 MB, free: 12.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000296/0.08729, allocations: 67.92 kB / 401 MB, free: 11.95 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.0008498/0.08815, allocations: 440.5 kB / 401.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.08847, allocations: 151.8 kB / 401.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.08848, allocations: 0 / 401.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.08862, allocations: 71.91 kB / 401.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.08893, allocations: 60.98 kB / 401.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/0.08959, allocations: 499.9 kB / 402.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.0899, allocations: 0.7755 MB / 403 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.09002, allocations: 50.5 kB / 403 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.09007, allocations: 23.44 kB / 403.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09008, allocations: 0 / 403.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Templates: time 0.006678/0.09676, allocations: 3.739 MB / 406.8 MB, free: 6.188 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: