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.008558/0.008558, allocations: 170.1 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06959/0.06959, allocations: 10.74 MB / 26.59 MB, free: 2.234 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.533/1.533, allocations: 205.4 MB / 235.2 MB, free: 180 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008645/0.0008644, allocations: 81.59 kB / 285.9 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003401, allocations: 8 kB / 346.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1143, allocations: 49.97 MB / 396.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3521/0.4664, allocations: 81.4 MB / 477.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.4668, allocations: 90.84 kB / 478 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0222/0.489, allocations: 9.185 MB / 487.2 MB, free: 7.199 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.489, allocations: 0 / 487.2 MB, free: 7.199 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.4891, allocations: 4 kB / 487.2 MB, free: 7.195 MB / 346.7 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.0007667/0.4898, allocations: 0.6274 MB / 487.8 MB, free: 6.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4899, allocations: 12.03 kB / 487.8 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.4899, allocations: 45.67 kB / 487.8 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.49, allocations: 27.62 kB / 487.9 MB, free: 6.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004404/0.4905, allocations: 326.7 kB / 488.2 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.4905, allocations: 7.688 kB / 488.2 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.4905, allocations: 13.05 kB / 488.2 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.4908, allocations: 154.6 kB / 488.4 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.4908, allocations: 0 / 488.4 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.4908, allocations: 7.562 kB / 488.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.4908, allocations: 0 / 488.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.491, allocations: 77.78 kB / 488.5 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.4916, allocations: 0.4898 MB / 488.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.4919, allocations: 139.1 kB / 489.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.4919, allocations: 8 kB / 489.1 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.4921, allocations: 136.9 kB / 489.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.4921, allocations: 0 / 489.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005467/0.4927, allocations: 348.5 kB / 489.6 MB, free: 4.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.4927, allocations: 114 kB / 489.7 MB, free: 4.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.4931, allocations: 355.2 kB / 490 MB, free: 4.504 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.4931, allocations: 33.14 kB / 490 MB, free: 4.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.699e-05/0.4932, allocations: 159.2 kB / 490.2 MB, free: 4.355 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.4932, allocations: 46.83 kB / 490.2 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-06/0.4932, allocations: 3.438 kB / 490.3 MB, free: 4.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.166e-05/0.4933, allocations: 341.4 kB / 490.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.4934, allocations: 57.06 kB / 490.6 MB, free: 3.949 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.4935, allocations: 146.1 kB / 490.8 MB, free: 3.789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.4936, allocations: 68.92 kB / 490.9 MB, free: 3.746 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4937, allocations: 3.984 kB / 490.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003149/0.494, allocations: 231 kB / 491.1 MB, free: 3.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.494, allocations: 8 kB / 491.1 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.494, allocations: 0 / 491.1 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.494, allocations: 4 kB / 491.1 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.4942, allocations: 31.92 kB / 491.1 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.4942, allocations: 4 kB / 491.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.4943, allocations: 23.77 kB / 491.2 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.4943, allocations: 11.23 kB / 491.2 MB, free: 3.484 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(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(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.0001942/0.4945, allocations: 176.8 kB / 491.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.4946, allocations: 27.67 kB / 491.4 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003946/0.495, allocations: 247.2 kB / 491.6 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.495, allocations: 4 kB / 491.6 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.495, allocations: 0 / 491.6 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.495, allocations: 7.953 kB / 491.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.4952, allocations: 304.1 kB / 491.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4952, allocations: 8 kB / 491.9 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.615e-05/0.4953, allocations: 15.42 kB / 491.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4953, allocations: 0 / 491.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.4953, allocations: 4 kB / 491.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4953, allocations: 0 / 491.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4953, allocations: 0 / 491.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.4957, allocations: 272.2 kB / 492.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.221e-05/0.4958, allocations: 123.3 kB / 492.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.4958, allocations: 3.375 kB / 492.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/0.4959, allocations: 11.98 kB / 492.3 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.702e-05/0.496, allocations: 15.36 kB / 492.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.496, allocations: 4 kB / 492.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002437/0.4963, allocations: 282.7 kB / 492.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.4963, allocations: 0 / 492.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.4966, allocations: 82.86 kB / 492.7 MB, free: 2.102 MB / 346.7 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) * Number of clocked states: 0 () * 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.001386/0.498, allocations: 1.141 MB / 493.9 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.4984, allocations: 159.8 kB / 494 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4984, allocations: 0 / 494 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.4986, allocations: 86.59 kB / 494.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.4989, allocations: 67.92 kB / 494.2 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.5017, allocations: 2.966 MB / 497.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.5021, allocations: 0.773 MB / 497.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.5022, allocations: 46.25 kB / 497.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.5024, allocations: 107.5 kB / 498.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5024, allocations: 0 / 498.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.5231, allocations: 6.757 MB / 0.493 GB, free: 6.375 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/0.5234, allocations: 243.8 kB / 0.4932 GB, free: 6.129 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.705, allocations: 0 / 0.4932 GB, free: 6.129 MB / 362.7 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)