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.005856/0.005856, allocations: 102.8 kB / 15.74 MB, free: 6.5 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.001307/0.001307, allocations: 198.1 kB / 16.68 MB, free: 6.375 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.394/1.394, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0605/0.0605, allocations: 10.75 MB / 280.7 MB, free: 10.39 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.001492/0.001492, allocations: 67.03 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2548, allocations: 49.02 MB / 439.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002835/0.2576, allocations: 1.978 MB / 441.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.2594, allocations: 1.186 MB / 442.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2595, allocations: 7 kB / 442.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008295/0.2604, allocations: 296.6 kB / 442.8 MB, free: 2.773 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004651/0.2608, allocations: 206.1 kB / 443 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007107/0.2616, allocations: 281.2 kB / 443.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003912/0.262, allocations: 360.1 kB / 443.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.2621, allocations: 52.19 kB / 443.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.2623, allocations: 148.1 kB / 443.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.2625, allocations: 149.2 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2625, allocations: 19.84 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002651/0.2628, allocations: 115.9 kB / 444.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.2629, allocations: 86.86 kB / 444.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.263, allocations: 123.2 kB / 444.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.2635, allocations: 393.2 kB / 444.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2635, allocations: 4 kB / 444.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2635, allocations: 0 / 444.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2636, allocations: 0 / 444.7 MB, free: 1.914 MB / 318.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.0009047/0.2645, allocations: 0.681 MB / 445.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2645, allocations: 16.92 kB / 445.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.2646, allocations: 41.62 kB / 445.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.702e-05/0.2646, allocations: 37.47 kB / 445.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.265, allocations: 344.2 kB / 445.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.265, allocations: 14.33 kB / 445.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.2651, allocations: 12.19 kB / 445.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.2654, allocations: 157.3 kB / 446 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2654, allocations: 0 / 446 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.2655, allocations: 3.797 kB / 446 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2655, allocations: 2.469 kB / 446 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.2656, allocations: 73.2 kB / 446.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006357/0.2663, allocations: 489 kB / 446.6 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.2667, allocations: 147.1 kB / 446.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.2669, allocations: 68.3 kB / 446.8 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.2669, allocations: 6.906 kB / 446.8 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.2672, allocations: 134.1 kB / 446.9 MB, free: 280 kB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.2672, allocations: 0 / 446.9 MB, free: 280 kB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005827/0.2678, allocations: 300.9 kB / 447.2 MB, free: 148 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.2678, allocations: 107.8 kB / 447.3 MB, free: 20 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000547/0.2684, allocations: 442.4 kB / 447.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2684, allocations: 33.97 kB / 447.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.2685, allocations: 164.4 kB / 447.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.2686, allocations: 47.45 kB / 448 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.279e-05/0.2687, allocations: 48.44 kB / 448 MB, free: 15.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2688, allocations: 356.7 kB / 448.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.2689, allocations: 44.02 kB / 448.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.2691, allocations: 149.2 kB / 448.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.2694, allocations: 196.7 kB / 448.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2694, allocations: 1.344 kB / 448.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003923/0.2698, allocations: 235.5 kB / 449 MB, free: 14.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2699, allocations: 5.812 kB / 449 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2699, allocations: 2.25 kB / 449 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2699, allocations: 3.281 kB / 449 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.27, allocations: 30.7 kB / 449 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.27, allocations: 8.297 kB / 449 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2702, allocations: 20.42 kB / 449.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.2702, allocations: 12.22 kB / 449.1 MB, free: 14.74 MB / 334.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.0002134/0.2704, allocations: 191.1 kB / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.2705, allocations: 38.72 kB / 449.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.799e-05/0.2705, allocations: 35.03 kB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2706, allocations: 1.5 kB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.2706, allocations: 5.422 kB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2706, allocations: 0 / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.2709, allocations: 299.6 kB / 449.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2709, allocations: 1.219 kB / 449.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.2709, allocations: 13.78 kB / 449.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2709, allocations: 1.156 kB / 449.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.271, allocations: 11.48 kB / 449.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.271, allocations: 3.938 kB / 449.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.271, allocations: 1.125 kB / 449.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.2714, allocations: 263.7 kB / 449.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.46e-05/0.2715, allocations: 113.2 kB / 450 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.505e-05/0.2716, allocations: 10.59 kB / 450 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.934e-05/0.2717, allocations: 8.984 kB / 450.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.328e-05/0.2717, allocations: 14.86 kB / 450.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.2717, allocations: 9.859 kB / 450.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003173/0.2721, allocations: 331.2 kB / 450.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2721, allocations: 0 / 450.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.2724, allocations: 62.62 kB / 450.5 MB, free: 13.71 MB / 334.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.001533/0.274, allocations: 1.126 MB / 451.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.2743, allocations: 158 kB / 451.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.2743, allocations: 0.5 kB / 451.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.2745, allocations: 83.42 kB / 451.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.275, allocations: 74.42 kB / 451.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.2786, allocations: 3.049 MB / 455 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.279, allocations: 0.7726 MB / 455.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.2791, allocations: 52.92 kB / 455.8 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2793, allocations: 94.09 kB / 455.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2793, allocations: 0 / 455.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.311, allocations: 7.777 MB / 463.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.17/8.481, allocations: 5 kB / 463.6 MB, free: 4.316 MB / 334.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)