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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001153/0.001152, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05992/0.05992, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 97.8 kB / 282.6 MB, free: 13.6 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.593e-05/4.605e-05, allocations: 0 / 340.6 MB, free: 3.543 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.427/0.4271, allocations: 49.99 MB / 390.6 MB, free: 35.74 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.5488, allocations: 81.3 MB / 471.9 MB, free: 2.324 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/0.5492, allocations: 87.94 kB / 472 MB, free: 2.238 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02803/0.5773, allocations: 9.151 MB / 481.1 MB, free: 9.086 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5774, allocations: 0 / 481.1 MB, free: 9.086 MB / 362.8 MB Notification: Performance of Transformations before backend: time 6.55e-05/0.5774, allocations: 4 kB / 481.1 MB, free: 9.082 MB / 362.8 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.00127/0.5787, allocations: 0.568 MB / 481.7 MB, free: 8.453 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.5788, allocations: 12.03 kB / 481.7 MB, free: 8.441 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.964e-05/0.5789, allocations: 42.55 kB / 481.7 MB, free: 8.391 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.579, allocations: 31.58 kB / 481.8 MB, free: 8.359 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.5799, allocations: 336 kB / 482.1 MB, free: 7.992 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.58, allocations: 8.188 kB / 482.1 MB, free: 7.984 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.58, allocations: 12 kB / 482.1 MB, free: 7.973 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.5804, allocations: 156 kB / 482.3 MB, free: 7.809 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.5804, allocations: 0 / 482.3 MB, free: 7.809 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.5804, allocations: 0 / 482.3 MB, free: 7.809 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.5804, allocations: 4 kB / 482.3 MB, free: 7.805 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.5806, allocations: 72.25 kB / 482.3 MB, free: 7.734 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.5816, allocations: 0.5007 MB / 482.8 MB, free: 7.184 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.5819, allocations: 134.7 kB / 483 MB, free: 7.043 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.5821, allocations: 52.84 kB / 483 MB, free: 6.988 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.5821, allocations: 4 kB / 483 MB, free: 6.984 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.5824, allocations: 128.2 kB / 483.2 MB, free: 6.848 MB / 362.8 MB Notification: Performance of pre-optimization done (n=17): time 1.964e-06/0.5824, allocations: 0 / 483.2 MB, free: 6.848 MB / 362.8 MB Notification: Performance of matching and sorting (n=17): time 0.0004938/0.5829, allocations: 209.3 kB / 483.4 MB, free: 6.637 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.583, allocations: 106.8 kB / 483.5 MB, free: 6.508 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/0.5836, allocations: 350.9 kB / 483.8 MB, free: 6.156 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.5837, allocations: 37.7 kB / 483.8 MB, free: 6.113 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.5839, allocations: 160.3 kB / 484 MB, free: 5.949 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.396e-05/0.584, allocations: 47.44 kB / 484 MB, free: 5.902 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.584, allocations: 4 kB / 484 MB, free: 5.898 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002583/0.5842, allocations: 338.8 kB / 484.4 MB, free: 5.559 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.5843, allocations: 43.98 kB / 484.4 MB, free: 5.516 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.5846, allocations: 149.3 kB / 484.6 MB, free: 5.328 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.5848, allocations: 55.97 kB / 484.6 MB, free: 5.273 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.5848, allocations: 3.938 kB / 484.6 MB, free: 5.27 MB / 362.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004599/0.5852, allocations: 221 kB / 484.8 MB, free: 5.047 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.766e-05/0.5853, allocations: 5.344 kB / 484.8 MB, free: 5.043 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.5853, allocations: 8 kB / 484.9 MB, free: 5.035 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.465e-05/0.5854, allocations: 4 kB / 484.9 MB, free: 5.031 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.5856, allocations: 31.92 kB / 484.9 MB, free: 5 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.5856, allocations: 0 / 484.9 MB, free: 5 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.5858, allocations: 27.83 kB / 484.9 MB, free: 4.973 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.5858, allocations: 12 kB / 484.9 MB, free: 4.961 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = false ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(fixed = false ) "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 () * 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.0002812/0.5861, allocations: 142.5 kB / 485.1 MB, free: 4.816 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.919e-05/0.5862, allocations: 31.67 kB / 485.1 MB, free: 4.785 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005368/0.5867, allocations: 232.3 kB / 485.3 MB, free: 4.555 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.5868, allocations: 4 kB / 485.3 MB, free: 4.551 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.5868, allocations: 0 / 485.3 MB, free: 4.551 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.5868, allocations: 7.938 kB / 485.3 MB, free: 4.543 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.5872, allocations: 305.4 kB / 485.6 MB, free: 4.195 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5872, allocations: 4 kB / 485.6 MB, free: 4.191 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.5873, allocations: 12 kB / 485.7 MB, free: 4.18 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.5873, allocations: 0 / 485.7 MB, free: 4.18 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.5873, allocations: 8 kB / 485.7 MB, free: 4.172 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5873, allocations: 0 / 485.7 MB, free: 4.172 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5874, allocations: 3.984 kB / 485.7 MB, free: 4.168 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004571/0.5878, allocations: 250.3 kB / 485.9 MB, free: 3.906 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.588, allocations: 124.7 kB / 486 MB, free: 3.766 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.588, allocations: 3.984 kB / 486 MB, free: 3.762 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.5882, allocations: 16 kB / 486 MB, free: 3.746 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.5882, allocations: 19.97 kB / 486.1 MB, free: 3.727 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.5883, allocations: 4 kB / 486.1 MB, free: 3.723 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003628/0.5886, allocations: 278.1 kB / 486.3 MB, free: 3.449 MB / 362.8 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5886, allocations: 0 / 486.3 MB, free: 3.449 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004598/0.5891, allocations: 72.19 kB / 486.4 MB, free: 3.379 MB / 362.8 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.001993/0.5911, allocations: 1.104 MB / 487.5 MB, free: 2.32 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003644/0.5915, allocations: 151.8 kB / 487.7 MB, free: 2.172 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5915, allocations: 0 / 487.7 MB, free: 2.172 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.5917, allocations: 76.42 kB / 487.7 MB, free: 2.098 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.5921, allocations: 71.53 kB / 487.8 MB, free: 2.027 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.5932, allocations: 460.2 kB / 488.3 MB, free: 1.539 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.5937, allocations: 0.7758 MB / 489 MB, free: 0.7305 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.5939, allocations: 42.05 kB / 489.1 MB, free: 0.6875 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.594, allocations: 91.39 kB / 489.2 MB, free: 0.6016 MB / 362.8 MB Notification: Performance of SimCode: time 6.71e-07/0.5941, allocations: 0 / 489.2 MB, free: 0.6016 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02592/0.62, allocations: 6.689 MB / 495.9 MB, free: 9.93 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/0.6203, allocations: 215.9 kB / 496.1 MB, free: 9.699 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.77, allocations: 0 / 496.1 MB, free: 9.699 MB / 378.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)