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.001679/0.001678, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07823/0.07823, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.3 MB / 226.9 MB, free: 7.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001286/0.001286, allocations: 98.41 kB / 277.3 MB, free: 5.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.957e-05/1.96e-05, allocations: 4 kB / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 50 MB / 383.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3992/0.5079, allocations: 80.95 MB / 464.6 MB, free: 3.422 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.5082, allocations: 86.56 kB / 464.7 MB, free: 3.375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02523/0.5335, allocations: 9.247 MB / 473.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.5335, allocations: 0 / 473.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.583e-05/0.5335, allocations: 7.938 kB / 473.9 MB, free: 11.73 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.0007971/0.5343, allocations: 0.5891 MB / 474.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.5344, allocations: 8.031 kB / 474.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.006e-05/0.5345, allocations: 35.58 kB / 474.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/0.535, allocations: 343.2 kB / 474.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.5351, allocations: 7.984 kB / 474.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.5351, allocations: 15.5 kB / 474.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001462/0.5353, allocations: 60.73 kB / 475 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.5355, allocations: 142.6 kB / 475.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.5355, allocations: 0 / 475.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.5355, allocations: 0 / 475.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.5356, allocations: 4 kB / 475.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.5363, allocations: 485 kB / 475.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.5366, allocations: 135.3 kB / 475.7 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.391e-05/0.5367, allocations: 53.19 kB / 475.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.5367, allocations: 11.17 kB / 475.8 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.5369, allocations: 126.6 kB / 475.9 MB, free: 9.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.5369, allocations: 0 / 475.9 MB, free: 9.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004795/0.5374, allocations: 229.1 kB / 476.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.5375, allocations: 114.8 kB / 476.2 MB, free: 9.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.538, allocations: 378.4 kB / 476.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.538, allocations: 33.08 kB / 476.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.5381, allocations: 165.2 kB / 476.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.5382, allocations: 41.72 kB / 476.8 MB, free: 9.031 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/0.5382, allocations: 0 / 476.8 MB, free: 9.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5384, allocations: 347.5 kB / 477.2 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.936e-05/0.5384, allocations: 38.42 kB / 477.2 MB, free: 8.672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.5386, allocations: 146 kB / 477.4 MB, free: 8.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.5387, allocations: 59 kB / 477.4 MB, free: 8.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.5387, allocations: 0 / 477.4 MB, free: 8.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003067/0.539, allocations: 204 kB / 477.6 MB, free: 8.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.539, allocations: 8.25 kB / 477.6 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5391, allocations: 4 kB / 477.6 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.5391, allocations: 7.953 kB / 477.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.5392, allocations: 29.3 kB / 477.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.5392, allocations: 4 kB / 477.7 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.5394, allocations: 23.83 kB / 477.7 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.5394, allocations: 15.12 kB / 477.7 MB, free: 8.215 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" 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: 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 () * 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.0001542/0.5395, allocations: 131.6 kB / 477.8 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004039/0.54, allocations: 225.3 kB / 478.1 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.54, allocations: 35.58 kB / 478.1 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000435/0.5405, allocations: 245.2 kB / 478.3 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.5405, allocations: 7.953 kB / 478.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5405, allocations: 0 / 478.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.5405, allocations: 0 / 478.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002763/0.5408, allocations: 291.3 kB / 478.6 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.5408, allocations: 0 / 478.6 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.774e-05/0.5408, allocations: 11.81 kB / 478.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.5409, allocations: 0 / 478.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.5409, allocations: 7.984 kB / 478.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5409, allocations: 128 / 478.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.5409, allocations: 7.953 kB / 478.6 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/0.5413, allocations: 273.3 kB / 478.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.5414, allocations: 131.1 kB / 479 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.962e-05/0.5415, allocations: 3.688 kB / 479 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.5416, allocations: 11.98 kB / 479.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.5417, allocations: 15.97 kB / 479.1 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.5417, allocations: 7 kB / 479.1 MB, free: 6.961 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003104/0.542, allocations: 300.5 kB / 479.4 MB, free: 6.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.542, allocations: 0 / 479.4 MB, free: 6.734 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003412/0.5424, allocations: 71.12 kB / 479.4 MB, free: 6.668 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) * 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.001424/0.5438, allocations: 1.093 MB / 480.5 MB, free: 5.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000272/0.5441, allocations: 150.4 kB / 480.7 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5441, allocations: 0 / 480.7 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.5442, allocations: 77.2 kB / 480.8 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.5446, allocations: 63.77 kB / 480.8 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009178/0.5455, allocations: 495.2 kB / 481.3 MB, free: 4.949 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.5459, allocations: 0.7786 MB / 482.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.5461, allocations: 54.03 kB / 482.1 MB, free: 4.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.5462, allocations: 95.41 kB / 482.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5462, allocations: 0 / 482.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.572, allocations: 6.545 MB / 488.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.5723, allocations: 199.2 kB / 489 MB, free: 13.24 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.54/3.113, allocations: 0 / 489 MB, free: 13.24 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)