Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.00137/0.001369, allocations: 170 kB / 7.646 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06132/0.06132, allocations: 10.66 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.949/1.949, allocations: 205.3 MB / 226.9 MB, free: 7.961 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001352/0.001352, allocations: 94.41 kB / 277.3 MB, free: 5.496 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.954e-05/1.957e-05, allocations: 4 kB / 333.6 MB, free: 28.4 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 49.99 MB / 383.6 MB, free: 10.36 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3756/0.4835, allocations: 80.95 MB / 464.6 MB, free: 3.543 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.4839, allocations: 81.83 kB / 464.7 MB, free: 3.5 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0248/0.5087, allocations: 9.207 MB / 473.9 MB, free: 11.9 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5087, allocations: 4 kB / 473.9 MB, free: 11.89 MB / 346.8 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.5087, allocations: 8 kB / 473.9 MB, free: 11.89 MB / 346.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.0007933/0.5095, allocations: 0.5791 MB / 474.5 MB, free: 11.26 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.5096, allocations: 8.031 kB / 474.5 MB, free: 11.25 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.354e-05/0.5097, allocations: 35.58 kB / 474.5 MB, free: 11.22 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.5102, allocations: 338.6 kB / 474.8 MB, free: 10.89 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.5103, allocations: 8 kB / 474.8 MB, free: 10.88 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.809e-05/0.5103, allocations: 8 kB / 474.8 MB, free: 10.87 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001525/0.5105, allocations: 70.8 kB / 474.9 MB, free: 10.82 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.5107, allocations: 144.3 kB / 475 MB, free: 10.7 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.5107, allocations: 0 / 475 MB, free: 10.7 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.5108, allocations: 4 kB / 475.1 MB, free: 10.7 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.5108, allocations: 0 / 475.1 MB, free: 10.7 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007126/0.5115, allocations: 474.1 kB / 475.5 MB, free: 10.27 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.5118, allocations: 135 kB / 475.6 MB, free: 10.17 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.405e-05/0.5119, allocations: 54.83 kB / 475.7 MB, free: 10.13 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.512, allocations: 3.938 kB / 475.7 MB, free: 10.12 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.5122, allocations: 136.4 kB / 475.8 MB, free: 10 MB / 346.8 MB Notification: Performance of pre-optimization done (n=18): time 1.843e-06/0.5122, allocations: 0 / 475.8 MB, free: 10 MB / 346.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004644/0.5127, allocations: 228.1 kB / 476.1 MB, free: 9.816 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/0.5128, allocations: 114.3 kB / 476.2 MB, free: 9.684 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.5132, allocations: 358.3 kB / 476.5 MB, free: 9.406 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.5132, allocations: 29.64 kB / 476.6 MB, free: 9.371 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.5133, allocations: 161.6 kB / 476.7 MB, free: 9.262 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.5134, allocations: 43.09 kB / 476.8 MB, free: 9.227 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/0.5134, allocations: 0 / 476.8 MB, free: 9.227 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5135, allocations: 343 kB / 477.1 MB, free: 8.895 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.204e-05/0.5136, allocations: 45.23 kB / 477.1 MB, free: 8.863 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.5138, allocations: 144.5 kB / 477.3 MB, free: 8.703 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.5139, allocations: 60.94 kB / 477.3 MB, free: 8.664 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5139, allocations: 0 / 477.3 MB, free: 8.664 MB / 346.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003044/0.5142, allocations: 206.5 kB / 477.5 MB, free: 8.492 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.5142, allocations: 9.875 kB / 477.5 MB, free: 8.484 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.5142, allocations: 3.984 kB / 477.5 MB, free: 8.48 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.5143, allocations: 7.953 kB / 477.6 MB, free: 8.473 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.5144, allocations: 31.92 kB / 477.6 MB, free: 8.441 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.5144, allocations: 7.984 kB / 477.6 MB, free: 8.434 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.5145, allocations: 15.88 kB / 477.6 MB, free: 8.418 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.5146, allocations: 11.81 kB / 477.6 MB, free: 8.41 MB / 346.8 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.0001522/0.5147, allocations: 124.2 kB / 477.7 MB, free: 8.285 MB / 346.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003751/0.5151, allocations: 230.3 kB / 478 MB, free: 8.098 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.5152, allocations: 35.58 kB / 478 MB, free: 8.062 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004273/0.5156, allocations: 244.6 kB / 478.2 MB, free: 7.875 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.5156, allocations: 3.953 kB / 478.2 MB, free: 7.871 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5156, allocations: 4 kB / 478.2 MB, free: 7.867 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5156, allocations: 0 / 478.2 MB, free: 7.867 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.5159, allocations: 292.2 kB / 478.5 MB, free: 7.59 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5159, allocations: 3.984 kB / 478.5 MB, free: 7.586 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.773e-05/0.516, allocations: 11.94 kB / 478.5 MB, free: 7.574 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.516, allocations: 3.938 kB / 478.6 MB, free: 7.57 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.516, allocations: 4 kB / 478.6 MB, free: 7.566 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.516, allocations: 4.125 kB / 478.6 MB, free: 7.562 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.516, allocations: 7.938 kB / 478.6 MB, free: 7.555 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003922/0.5164, allocations: 271.8 kB / 478.8 MB, free: 7.32 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.5166, allocations: 118.5 kB / 479 MB, free: 7.191 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.5166, allocations: 6.875 kB / 479 MB, free: 7.188 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.5167, allocations: 11.98 kB / 479 MB, free: 7.176 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.5168, allocations: 11.17 kB / 479 MB, free: 7.168 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.5168, allocations: 15.92 kB / 479 MB, free: 7.152 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002819/0.5171, allocations: 284.8 kB / 479.3 MB, free: 6.941 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5171, allocations: 0 / 479.3 MB, free: 6.941 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003274/0.5174, allocations: 79.17 kB / 479.4 MB, free: 6.867 MB / 346.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: 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.001477/0.5189, allocations: 1.089 MB / 480.4 MB, free: 5.812 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.5192, allocations: 143 kB / 480.6 MB, free: 5.711 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5192, allocations: 0 / 480.6 MB, free: 5.711 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.5194, allocations: 83.5 kB / 480.7 MB, free: 5.656 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.5197, allocations: 56.61 kB / 480.7 MB, free: 5.609 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008594/0.5206, allocations: 481.8 kB / 481.2 MB, free: 5.168 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.521, allocations: 0.7818 MB / 482 MB, free: 4.367 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.000134/0.5211, allocations: 50.05 kB / 482 MB, free: 4.32 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.5213, allocations: 92.77 kB / 482.1 MB, free: 4.285 MB / 346.8 MB Notification: Performance of SimCode: time 2.81e-07/0.5213, allocations: 4 kB / 482.1 MB, free: 4.281 MB / 346.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.5477, allocations: 6.404 MB / 488.5 MB, free: 13.87 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.5479, allocations: 207.1 kB / 488.7 MB, free: 13.58 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.51/3.058, allocations: 0 / 488.7 MB, free: 13.58 MB / 362.8 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)