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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.004721/0.004721, allocations: 96.11 kB / 15.73 MB, free: 6.039 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.001285/0.001285, allocations: 201.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1688/0.1688, allocations: 11.18 MB / 301.7 MB, free: 1.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 55.91 kB / 417.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.249, allocations: 51.97 MB / 469.3 MB, free: 16.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002918/0.252, allocations: 1.994 MB / 471.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2538, allocations: 1.261 MB / 472.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.2539, allocations: 1.969 kB / 472.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007397/0.2547, allocations: 304.8 kB / 472.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004043/0.2551, allocations: 205.6 kB / 473.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007607/0.2558, allocations: 325.4 kB / 473.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.2562, allocations: 352.7 kB / 473.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.2563, allocations: 60.06 kB / 473.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2565, allocations: 149.3 kB / 473.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.2567, allocations: 144.5 kB / 474.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.2567, allocations: 23.23 kB / 474.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.257, allocations: 110.3 kB / 474.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.805e-05/0.2571, allocations: 89.84 kB / 474.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2572, allocations: 129.2 kB / 474.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.2576, allocations: 382.9 kB / 474.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2576, allocations: 0 / 474.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2576, allocations: 0 / 474.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.2576, allocations: 0 / 474.8 MB, free: 13.33 MB / 350.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.0008427/0.2585, allocations: 0.6928 MB / 475.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2585, allocations: 13.48 kB / 475.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.703e-05/0.2586, allocations: 42.86 kB / 475.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.841e-05/0.2586, allocations: 35.88 kB / 475.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/0.259, allocations: 340.8 kB / 475.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.259, allocations: 12.06 kB / 475.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.2591, allocations: 8.25 kB / 475.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.2593, allocations: 156.1 kB / 476.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2594, allocations: 0 / 476.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.2594, allocations: 9.359 kB / 476.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.2594, allocations: 2.75 kB / 476.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.2596, allocations: 71.62 kB / 476.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.2601, allocations: 491.4 kB / 476.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.2606, allocations: 143.9 kB / 476.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.2607, allocations: 56.75 kB / 476.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2607, allocations: 2.156 kB / 476.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.261, allocations: 140.2 kB / 477 MB, free: 11.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.703e-06/0.261, allocations: 0.9375 kB / 477 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005916/0.2616, allocations: 291.2 kB / 477.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.2617, allocations: 106.7 kB / 477.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004299/0.2621, allocations: 444.3 kB / 477.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.2621, allocations: 36.8 kB / 477.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/0.2622, allocations: 164 kB / 478 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.2623, allocations: 50.94 kB / 478.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.2623, allocations: 48.67 kB / 478.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.783e-05/0.2624, allocations: 351.9 kB / 478.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.2625, allocations: 44.64 kB / 478.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.2627, allocations: 153.6 kB / 478.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.263, allocations: 185.6 kB / 478.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.263, allocations: 4 kB / 478.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003606/0.2634, allocations: 231.7 kB / 479.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.2634, allocations: 6.062 kB / 479.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2634, allocations: 1.969 kB / 479.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.2634, allocations: 4.312 kB / 479.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.2635, allocations: 34.19 kB / 479.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2636, allocations: 16 kB / 479.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.2637, allocations: 21.27 kB / 479.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.2637, allocations: 16.25 kB / 479.2 MB, free: 9.805 MB / 350.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.0001862/0.2639, allocations: 178.8 kB / 479.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.787e-05/0.2639, allocations: 34.08 kB / 479.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.94e-05/0.264, allocations: 44.16 kB / 479.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.264, allocations: 6.297 kB / 479.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.264, allocations: 0 / 479.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2641, allocations: 0 / 479.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.2643, allocations: 307.8 kB / 479.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2643, allocations: 1.094 kB / 479.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.2643, allocations: 6.562 kB / 479.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2643, allocations: 0.9375 kB / 479.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2644, allocations: 10.2 kB / 479.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2644, allocations: 1.031 kB / 479.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2644, allocations: 1.125 kB / 479.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004324/0.2648, allocations: 269.4 kB / 480 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.2649, allocations: 106 kB / 480.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/0.2649, allocations: 10.2 kB / 480.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.2e-05/0.265, allocations: 5.688 kB / 480.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.2651, allocations: 14.11 kB / 480.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.2651, allocations: 13.48 kB / 480.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002904/0.2654, allocations: 331.1 kB / 480.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2654, allocations: 1.156 kB / 480.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000334/0.2658, allocations: 68.33 kB / 480.5 MB, free: 8.781 MB / 350.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.00198/0.2677, allocations: 1.139 MB / 481.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.2681, allocations: 152.6 kB / 481.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2681, allocations: 0 / 481.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.2683, allocations: 79 kB / 481.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004594/0.2688, allocations: 73.48 kB / 482 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.2719, allocations: 3.06 MB / 485 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.2721, allocations: 0.7755 MB / 485.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.2723, allocations: 52.83 kB / 485.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.2724, allocations: 94.84 kB / 485.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2724, allocations: 0 / 485.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.3018, allocations: 7.771 MB / 493.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/8.624, allocations: 13.59 kB / 493.7 MB, free: 0.5586 MB / 350.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)