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.001172/0.001173, allocations: 104.3 kB / 16.36 MB, free: 6.289 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.001505/0.001505, allocations: 192 kB / 17.29 MB, free: 5.863 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.467/1.467, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06581/0.06581, allocations: 10.74 MB / 281.3 MB, free: 1.305 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.002068/0.002069, allocations: 76.27 kB / 342 MB, free: 4.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.38, allocations: 49 MB / 391 MB, free: 49.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003675/0.3837, allocations: 1.998 MB / 393 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002083/0.3858, allocations: 1.18 MB / 394.2 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.386, allocations: 5.375 kB / 394.2 MB, free: 47.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009131/0.387, allocations: 276.8 kB / 394.4 MB, free: 47.68 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.0004556/0.3875, allocations: 187.6 kB / 394.6 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008029/0.3883, allocations: 285 kB / 394.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004837/0.3888, allocations: 347.4 kB / 395.2 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.3889, allocations: 49.59 kB / 395.3 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.3892, allocations: 147.3 kB / 395.4 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.3894, allocations: 135.6 kB / 395.6 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.3894, allocations: 17 kB / 395.6 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002656/0.3897, allocations: 107.8 kB / 395.7 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.3898, allocations: 70.25 kB / 395.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.3899, allocations: 124.1 kB / 395.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.3905, allocations: 360.7 kB / 396.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3905, allocations: 0 / 396.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3906, allocations: 4 kB / 396.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.3906, allocations: 0 / 396.2 MB, free: 46.87 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.001249/0.3918, allocations: 0.6443 MB / 396.9 MB, free: 46.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.3919, allocations: 13.61 kB / 396.9 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.91e-05/0.392, allocations: 30.69 kB / 396.9 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.3925, allocations: 320.8 kB / 397.2 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.3925, allocations: 18.36 kB / 397.3 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.3926, allocations: 13.09 kB / 397.3 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003342/0.3929, allocations: 149 kB / 397.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3929, allocations: 0 / 397.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.393, allocations: 2.594 kB / 397.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.393, allocations: 2.875 kB / 397.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3932, allocations: 72.36 kB / 397.5 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007989/0.394, allocations: 483.1 kB / 398 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.3944, allocations: 133.2 kB / 398.1 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.3945, allocations: 58.3 kB / 398.1 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.3946, allocations: 5.859 kB / 398.2 MB, free: 45.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.3949, allocations: 137.7 kB / 398.3 MB, free: 45.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.3949, allocations: 0 / 398.3 MB, free: 45.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006203/0.3955, allocations: 264.5 kB / 398.5 MB, free: 45.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.3956, allocations: 112.3 kB / 398.7 MB, free: 45.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.396, allocations: 384 kB / 399 MB, free: 44.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.3961, allocations: 34.16 kB / 399.1 MB, free: 44.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.3962, allocations: 155.9 kB / 399.2 MB, free: 44.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.3963, allocations: 45.44 kB / 399.3 MB, free: 44.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/0.3963, allocations: 47.97 kB / 399.3 MB, free: 44.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3965, allocations: 344.7 kB / 399.6 MB, free: 44.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3966, allocations: 49.08 kB / 399.7 MB, free: 44.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.3968, allocations: 140.9 kB / 399.8 MB, free: 44.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003205/0.3971, allocations: 186.8 kB / 400 MB, free: 44.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3971, allocations: 1.812 kB / 400 MB, free: 44.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004044/0.3975, allocations: 226.2 kB / 400.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3976, allocations: 5.688 kB / 400.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3976, allocations: 6 kB / 400.2 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.3976, allocations: 12.14 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3978, allocations: 30.8 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.3978, allocations: 3.5 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.3979, allocations: 20.06 kB / 400.3 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.398, allocations: 16.81 kB / 400.3 MB, free: 43.89 MB / 318.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.0002683/0.3982, allocations: 181.2 kB / 400.5 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.39e-05/0.3983, allocations: 29.75 kB / 400.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.359e-05/0.3984, allocations: 29.33 kB / 400.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3984, allocations: 1.25 kB / 400.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.3984, allocations: 1.156 kB / 400.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3984, allocations: 0 / 400.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002793/0.3987, allocations: 291.5 kB / 400.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3987, allocations: 0 / 400.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/0.3987, allocations: 11.17 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3988, allocations: 1.188 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3988, allocations: 2.25 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3988, allocations: 5.281 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3988, allocations: 4 kB / 400.9 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.3993, allocations: 253.8 kB / 401.1 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.346e-05/0.3993, allocations: 104.3 kB / 401.2 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.3994, allocations: 11.23 kB / 401.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.3995, allocations: 8.375 kB / 401.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.924e-05/0.3996, allocations: 14.58 kB / 401.3 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.3996, allocations: 13.39 kB / 401.3 MB, free: 43.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003247/0.3999, allocations: 279.1 kB / 401.5 MB, free: 42.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3999, allocations: 0.9062 kB / 401.5 MB, free: 42.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.4003, allocations: 62.17 kB / 401.6 MB, free: 42.91 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: 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.001146/0.4015, allocations: 447.7 kB / 402 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000374/0.4019, allocations: 152.9 kB / 402.2 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4019, allocations: 1.094 kB / 402.2 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.402, allocations: 67.97 kB / 402.3 MB, free: 42.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.4025, allocations: 77.89 kB / 402.3 MB, free: 42.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008402/0.4033, allocations: 456.8 kB / 402.8 MB, free: 42.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.4036, allocations: 0.775 MB / 403.6 MB, free: 41.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.4038, allocations: 46.19 kB / 403.6 MB, free: 41.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.455e-05/0.4038, allocations: 28.91 kB / 403.6 MB, free: 41.49 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4038, allocations: 0 / 403.6 MB, free: 41.49 MB / 318.1 MB Notification: Performance of Templates: time 0.009233/0.4131, allocations: 4.073 MB / 407.7 MB, free: 39.44 MB / 318.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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)