Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.008869/0.008869, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06721/0.06721, allocations: 10.74 MB / 26.59 MB, free: 2.266 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.655/1.655, allocations: 205.4 MB / 235.2 MB, free: 188 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.0008343/0.0008342, allocations: 79.97 kB / 285.9 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003156, allocations: 8 kB / 346.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.132, allocations: 49.99 MB / 396.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4975, allocations: 81.37 MB / 477.9 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.4978, allocations: 88.61 kB / 478 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02371/0.5215, allocations: 9.352 MB / 487.3 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5216, allocations: 0 / 487.3 MB, free: 7.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.88e-05/0.5216, allocations: 4 kB / 487.3 MB, free: 7.203 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.001156/0.5228, allocations: 0.6514 MB / 488 MB, free: 6.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.5229, allocations: 12.03 kB / 488 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.689e-05/0.5229, allocations: 42.11 kB / 488 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.5231, allocations: 31.62 kB / 488.1 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005973/0.5237, allocations: 346.7 kB / 488.4 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.5237, allocations: 12.19 kB / 488.4 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.5237, allocations: 15.12 kB / 488.4 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.5241, allocations: 153.9 kB / 488.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.5241, allocations: 0.75 kB / 488.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.5241, allocations: 7.062 kB / 488.6 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.5241, allocations: 4 kB / 488.6 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.5243, allocations: 73.7 kB / 488.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008028/0.5251, allocations: 0.5086 MB / 489.2 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.5255, allocations: 157.9 kB / 489.3 MB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.5255, allocations: 7.953 kB / 489.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.5258, allocations: 132.2 kB / 489.5 MB, free: 5.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.744e-06/0.5258, allocations: 8 kB / 489.5 MB, free: 5.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006263/0.5264, allocations: 371.8 kB / 489.8 MB, free: 4.836 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.5265, allocations: 110.8 kB / 489.9 MB, free: 4.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004661/0.527, allocations: 399.8 kB / 490.3 MB, free: 4.391 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.527, allocations: 36.45 kB / 490.4 MB, free: 4.355 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.5271, allocations: 172.2 kB / 490.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.5272, allocations: 47.14 kB / 490.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.5272, allocations: 3.188 kB / 490.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.5273, allocations: 348.4 kB / 490.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.5274, allocations: 46.45 kB / 491 MB, free: 3.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.5275, allocations: 154.6 kB / 491.1 MB, free: 3.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.5277, allocations: 66.66 kB / 491.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5277, allocations: 4 kB / 491.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003748/0.5281, allocations: 233.5 kB / 491.4 MB, free: 3.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.5281, allocations: 15.89 kB / 491.4 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5281, allocations: 0 / 491.4 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.5281, allocations: 4 kB / 491.4 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.5283, allocations: 31.55 kB / 491.5 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.5283, allocations: 7.938 kB / 491.5 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.5284, allocations: 27.69 kB / 491.5 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.5284, allocations: 11.98 kB / 491.5 MB, free: 3.34 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(fixed = true ) "status of the timer" 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: 23 ($PRE.timer.Sd,timer.Sd,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$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,SetSignal.y,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 (27): * Single equations (assignments): 27 * 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.0002478/0.5287, allocations: 183 kB / 491.7 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.996e-05/0.5288, allocations: 31.62 kB / 491.7 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004355/0.5292, allocations: 262.4 kB / 492 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.5292, allocations: 0 / 492 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/0.5292, allocations: 3.953 kB / 492 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5292, allocations: 4 kB / 492 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002573/0.5295, allocations: 323.7 kB / 492.3 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5295, allocations: 4 kB / 492.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.687e-05/0.5296, allocations: 15.94 kB / 492.3 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.5296, allocations: 0 / 492.3 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.5296, allocations: 4 kB / 492.3 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5296, allocations: 3.984 kB / 492.3 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5296, allocations: 7.953 kB / 492.3 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.53, allocations: 276.3 kB / 492.6 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.5302, allocations: 123.7 kB / 492.7 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.5302, allocations: 11.48 kB / 492.7 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.5303, allocations: 7.5 kB / 492.7 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.5304, allocations: 19.97 kB / 492.8 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.5304, allocations: 6.688 kB / 492.8 MB, free: 2.199 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003292/0.5308, allocations: 329 kB / 493.1 MB, free: 1.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5308, allocations: 3.938 kB / 493.1 MB, free: 1.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.5312, allocations: 79.31 kB / 493.2 MB, free: 1.879 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,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 (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001591/0.5328, allocations: 1.154 MB / 494.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.5332, allocations: 176.8 kB / 494.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5332, allocations: 4 kB / 494.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.5333, allocations: 83.83 kB / 494.6 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.5337, allocations: 68 kB / 494.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.5372, allocations: 3.136 MB / 497.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.5376, allocations: 0.7861 MB / 498.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.5378, allocations: 50.77 kB / 498.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.538, allocations: 102.7 kB / 498.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.538, allocations: 0 / 498.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.5613, allocations: 7.282 MB / 0.4941 GB, free: 5.488 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002405/0.5616, allocations: 257.3 kB / 0.4944 GB, free: 5.148 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.245/2.807, allocations: 0 / 0.4944 GB, free: 5.148 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)