Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",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.005542/0.005542, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001273/0.001273, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 11.18 MB / 301.7 MB, free: 1.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 59.91 kB / 417.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2238, allocations: 51.98 MB / 469.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003077/0.227, allocations: 1.989 MB / 471.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.229, allocations: 1.258 MB / 472.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2291, allocations: 6.625 kB / 472.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007825/0.2299, allocations: 277.2 kB / 472.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004073/0.2303, allocations: 196.1 kB / 473 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.2311, allocations: 317.7 kB / 473.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.2315, allocations: 339.8 kB / 473.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.2316, allocations: 55.36 kB / 473.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.2318, allocations: 144.2 kB / 473.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.2319, allocations: 141.4 kB / 474 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.232, allocations: 18.25 kB / 474 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.2322, allocations: 98.94 kB / 474.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.894e-05/0.2323, allocations: 81.16 kB / 474.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.828e-05/0.2324, allocations: 116 kB / 474.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.2329, allocations: 356.2 kB / 474.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2329, allocations: 5.5 kB / 474.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2329, allocations: 0 / 474.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.2329, allocations: 0 / 474.7 MB, free: 13.37 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.0008463/0.2338, allocations: 0.6495 MB / 475.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2338, allocations: 13.48 kB / 475.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.406e-05/0.2338, allocations: 46.81 kB / 475.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.2339, allocations: 38.48 kB / 475.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.2342, allocations: 327.3 kB / 475.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2342, allocations: 13.44 kB / 475.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.2343, allocations: 14.86 kB / 475.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.2345, allocations: 140.3 kB / 475.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2346, allocations: 1.375 kB / 475.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.2346, allocations: 9.312 kB / 475.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2346, allocations: 5.375 kB / 475.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.2348, allocations: 71.64 kB / 476 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000528/0.2353, allocations: 474.3 kB / 476.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.2356, allocations: 134.5 kB / 476.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.2357, allocations: 63.59 kB / 476.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.2358, allocations: 1.469 kB / 476.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.236, allocations: 130.8 kB / 476.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.532e-06/0.236, allocations: 0 / 476.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005512/0.2366, allocations: 271.7 kB / 477 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.2366, allocations: 110.8 kB / 477.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.237, allocations: 385.2 kB / 477.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.237, allocations: 33.2 kB / 477.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.698e-05/0.2371, allocations: 159 kB / 477.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.2371, allocations: 46.36 kB / 477.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.2372, allocations: 47.22 kB / 477.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.442e-05/0.2373, allocations: 347.2 kB / 478.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.2374, allocations: 52.06 kB / 478.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.2375, allocations: 137.9 kB / 478.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.2378, allocations: 187.1 kB / 478.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2378, allocations: 0 / 478.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003414/0.2382, allocations: 219.7 kB / 478.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2382, allocations: 9.688 kB / 478.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2382, allocations: 2.625 kB / 478.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.2382, allocations: 4.438 kB / 478.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.2384, allocations: 37.27 kB / 478.8 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.2384, allocations: 4.562 kB / 478.8 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.2385, allocations: 32.14 kB / 478.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.2385, allocations: 8.219 kB / 478.8 MB, free: 9.977 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001849/0.2387, allocations: 182.3 kB / 479 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.2388, allocations: 29.34 kB / 479 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.471e-05/0.2388, allocations: 33.67 kB / 479.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2388, allocations: 2.625 kB / 479.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2389, allocations: 0 / 479.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2389, allocations: 3.938 kB / 479.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.2391, allocations: 287.7 kB / 479.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2391, allocations: 0 / 479.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.2391, allocations: 10.81 kB / 479.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2392, allocations: 1.562 kB / 479.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.2392, allocations: 7.078 kB / 479.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.2392, allocations: 3.984 kB / 479.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2392, allocations: 5.5 kB / 479.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.2396, allocations: 246.8 kB / 479.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.2396, allocations: 104.5 kB / 479.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.2397, allocations: 7.219 kB / 479.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.401e-05/0.2398, allocations: 16.33 kB / 479.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.2398, allocations: 14.45 kB / 479.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.2399, allocations: 9.188 kB / 479.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002509/0.2401, allocations: 280.1 kB / 480 MB, free: 9.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2401, allocations: 3.938 kB / 480.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.2404, allocations: 66.28 kB / 480.1 MB, free: 8.988 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001909/0.2424, allocations: 1.121 MB / 481.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003421/0.2427, allocations: 149.8 kB / 481.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2427, allocations: 0.5 kB / 481.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.2429, allocations: 72.11 kB / 481.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.2433, allocations: 84.34 kB / 481.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.2462, allocations: 2.808 MB / 484.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.2464, allocations: 0.7667 MB / 485.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.2465, allocations: 41.97 kB / 485.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.2467, allocations: 85.16 kB / 485.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2467, allocations: 5.156 kB / 485.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.2754, allocations: 7.296 MB / 492.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.477, allocations: 5.875 kB / 492.5 MB, free: 1.434 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_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_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)