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.009325/0.009325, 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.08833/0.08833, allocations: 10.73 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.644/1.644, allocations: 205.4 MB / 235.2 MB, free: 176 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.0009176/0.0009176, allocations: 80.97 kB / 285.9 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.0003625, allocations: 8 kB / 346.5 MB, free: 5.086 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1278, allocations: 49.99 MB / 396.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.393/0.5208, allocations: 81.38 MB / 477.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.5211, allocations: 84.55 kB / 478 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02355/0.5446, allocations: 9.304 MB / 487.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5447, allocations: 0 / 487.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.536e-05/0.5447, allocations: 20.12 kB / 487.3 MB, free: 7.367 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.001046/0.5458, allocations: 0.6344 MB / 487.9 MB, free: 6.691 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.5459, allocations: 8.031 kB / 487.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.082e-05/0.5459, allocations: 48.86 kB / 488 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.5461, allocations: 31.62 kB / 488 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000603/0.5467, allocations: 334.4 kB / 488.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.5467, allocations: 15.81 kB / 488.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.5467, allocations: 7.938 kB / 488.4 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.5471, allocations: 166.4 kB / 488.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.5471, allocations: 0 / 488.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.5471, allocations: 3.812 kB / 488.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.5471, allocations: 11.98 kB / 488.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.5473, allocations: 71.77 kB / 488.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007926/0.5481, allocations: 0.5093 MB / 489.1 MB, free: 5.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003744/0.5485, allocations: 151 kB / 489.3 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.5485, allocations: 7.953 kB / 489.3 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.5488, allocations: 133.9 kB / 489.4 MB, free: 5.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.714e-06/0.5488, allocations: 4 kB / 489.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.000605/0.5494, allocations: 366.7 kB / 489.8 MB, free: 5.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.5495, allocations: 118.2 kB / 489.9 MB, free: 4.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.5499, allocations: 380.3 kB / 490.2 MB, free: 4.586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.5499, allocations: 33.39 kB / 490.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.093e-05/0.55, allocations: 166.5 kB / 490.4 MB, free: 4.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.5501, allocations: 44.91 kB / 490.5 MB, free: 4.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-06/0.5501, allocations: 3.312 kB / 490.5 MB, free: 4.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.5502, allocations: 348 kB / 490.8 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.5503, allocations: 45.47 kB / 490.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.5504, allocations: 157.3 kB / 491 MB, free: 3.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.5506, allocations: 68.06 kB / 491.1 MB, free: 3.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.5506, allocations: 0 / 491.1 MB, free: 3.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003503/0.551, allocations: 231.3 kB / 491.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.551, allocations: 7.953 kB / 491.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.551, allocations: 4 kB / 491.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.551, allocations: 4 kB / 491.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.5511, allocations: 35.55 kB / 491.4 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.5511, allocations: 3.938 kB / 491.4 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.5513, allocations: 31.77 kB / 491.4 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.5513, allocations: 8 kB / 491.4 MB, free: 3.551 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.0002022/0.5515, allocations: 178.6 kB / 491.6 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.5516, allocations: 35.62 kB / 491.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004534/0.552, allocations: 262.8 kB / 491.9 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.552, allocations: 0 / 491.9 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.552, allocations: 3.953 kB / 491.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.5521, allocations: 0 / 491.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.5523, allocations: 324.2 kB / 492.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.5523, allocations: 0 / 492.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-05/0.5523, allocations: 11.98 kB / 492.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.5524, allocations: 0 / 492.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.5524, allocations: 11.5 kB / 492.2 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5524, allocations: 3.938 kB / 492.2 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5524, allocations: 7.953 kB / 492.2 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000403/0.5528, allocations: 274.2 kB / 492.5 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.5529, allocations: 120.2 kB / 492.6 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.553, allocations: 7.438 kB / 492.6 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.5531, allocations: 7.984 kB / 492.6 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.5531, allocations: 23.89 kB / 492.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.5532, allocations: 11.98 kB / 492.7 MB, free: 2.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003223/0.5535, allocations: 308.2 kB / 493 MB, free: 2.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5535, allocations: 3.938 kB / 493 MB, free: 2.176 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004148/0.5539, allocations: 83.17 kB / 493.1 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: 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.001573/0.5555, allocations: 1.159 MB / 494.2 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.5559, allocations: 169.8 kB / 494.4 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.5559, allocations: 0 / 494.4 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.5561, allocations: 84.34 kB / 494.5 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.5565, allocations: 71.67 kB / 494.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.5598, allocations: 3.084 MB / 497.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.5602, allocations: 0.7819 MB / 498.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.5604, allocations: 46.52 kB / 498.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.5605, allocations: 96.28 kB / 498.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5605, allocations: 0 / 498.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.5845, allocations: 7.146 MB / 0.4938 GB, free: 5.902 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/0.5848, allocations: 253.3 kB / 0.4941 GB, free: 5.566 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.798, allocations: 0 / 0.4941 GB, free: 5.566 MB / 362.7 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)