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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009978/0.0009978, allocations: 199.3 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05362/0.05362, allocations: 10.74 MB / 280.1 MB, free: 10.73 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.84 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07582/0.07712, allocations: 49.02 MB / 389 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.00303/0.08019, allocations: 2.053 MB / 391 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.08199, allocations: 1.17 MB / 392.2 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.08213, allocations: 7.938 kB / 392.2 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008298/0.08296, allocations: 291.3 kB / 392.5 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.08332, allocations: 179.5 kB / 392.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.08391, allocations: 255.6 kB / 392.9 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.08426, allocations: 359 kB / 393.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.0844, allocations: 48.3 kB / 393.3 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.08456, allocations: 127.5 kB / 393.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.08475, allocations: 147.4 kB / 393.6 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.08479, allocations: 8 kB / 393.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.08497, allocations: 91.88 kB / 393.7 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.08508, allocations: 79.73 kB / 393.8 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.08529, allocations: 119.2 kB / 393.9 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004388/0.08574, allocations: 375 kB / 394.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.08575, allocations: 0 / 394.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08576, allocations: 3.938 kB / 394.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.08577, allocations: 4 kB / 394.3 MB, free: 1.309 MB / 286.1 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.0009014/0.08668, allocations: 0.6652 MB / 394.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.08672, allocations: 8.031 kB / 394.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.097e-05/0.08677, allocations: 38.75 kB / 395 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.868e-05/0.08684, allocations: 40.55 kB / 395 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003711/0.08722, allocations: 336.1 kB / 395.3 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.08724, allocations: 11.92 kB / 395.3 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.08728, allocations: 12 kB / 395.4 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.08759, allocations: 156.1 kB / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.0876, allocations: 0 / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.08763, allocations: 8 kB / 395.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.08764, allocations: 3.984 kB / 395.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.08781, allocations: 71.89 kB / 395.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006586/0.08848, allocations: 492.2 kB / 396.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.08889, allocations: 146.8 kB / 396.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.08903, allocations: 64.83 kB / 396.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.08905, allocations: 0 / 396.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.08937, allocations: 135.2 kB / 396.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.08938, allocations: 0 / 396.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005804/0.08996, allocations: 281.1 kB / 396.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.09004, allocations: 118.8 kB / 396.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000434/0.09048, allocations: 441.6 kB / 397.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.09051, allocations: 33.7 kB / 397.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.09063, allocations: 168.4 kB / 397.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.09071, allocations: 43.44 kB / 397.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.547e-05/0.09078, allocations: 49.64 kB / 397.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.091, allocations: 354.7 kB / 397.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.0912, allocations: 48.22 kB / 397.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.09138, allocations: 148.4 kB / 398.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.09177, allocations: 192.4 kB / 398.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.09178, allocations: 0 / 398.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004485/0.09223, allocations: 233 kB / 398.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.09226, allocations: 8.25 kB / 398.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.09227, allocations: 4 kB / 398.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.09229, allocations: 4 kB / 398.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.0925, allocations: 31.92 kB / 398.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.09252, allocations: 4 kB / 398.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.09264, allocations: 23.83 kB / 398.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.09266, allocations: 15.94 kB / 398.6 MB, free: 12.65 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false 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,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.09286, allocations: 196.1 kB / 398.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.09292, allocations: 27.62 kB / 398.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.15e-05/0.09298, allocations: 35.28 kB / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.09299, allocations: 0 / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.093, allocations: 0 / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.09301, allocations: 0 / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.09326, allocations: 309.3 kB / 399.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.09327, allocations: 0 / 399.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.35e-05/0.09331, allocations: 11.98 kB / 399.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.09333, allocations: 4 kB / 399.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.09335, allocations: 7.938 kB / 399.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.09335, allocations: 0 / 399.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09336, allocations: 0 / 399.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.09377, allocations: 268 kB / 399.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.09385, allocations: 108.8 kB / 399.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.0939, allocations: 15.98 kB / 399.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.99e-05/0.09399, allocations: 15.98 kB / 399.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.09405, allocations: 11.98 kB / 399.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.09407, allocations: 4 kB / 399.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004006/0.09448, allocations: 327.1 kB / 399.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09449, allocations: 0 / 399.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.09479, allocations: 67.98 kB / 399.9 MB, free: 11.18 MB / 302.1 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,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001638/0.09644, allocations: 1.137 MB / 401.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.09677, allocations: 155.7 kB / 401.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09678, allocations: 0 / 401.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.09694, allocations: 76.41 kB / 401.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.09734, allocations: 81.25 kB / 401.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.101, allocations: 3.139 MB / 404.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.1014, allocations: 0.7714 MB / 405.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000136/0.1015, allocations: 46.94 kB / 405.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.1017, allocations: 91.41 kB / 405.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1017, allocations: 0 / 405.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.1186, allocations: 7.309 MB / 412.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1188, allocations: 285.6 kB / 413 MB, free: 13.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.062, allocations: 0 / 413 MB, free: 13.93 MB / 318.1 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/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)