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 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_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.004508/0.004508, allocations: 94.98 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.001221/0.001221, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.326/1.326, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05829/0.05829, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.001449/0.001449, allocations: 64.53 kB / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.231, allocations: 49.03 MB / 439.4 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003582/0.2346, allocations: 1.988 MB / 441.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.2367, allocations: 1.173 MB / 442.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2368, allocations: 6.688 kB / 442.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008107/0.2377, allocations: 271.4 kB / 442.8 MB, free: 2.801 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.0004342/0.2381, allocations: 204.2 kB / 443 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007294/0.2388, allocations: 278.8 kB / 443.3 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.2393, allocations: 343.5 kB / 443.6 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2394, allocations: 51.94 kB / 443.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.2397, allocations: 151 kB / 443.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.2399, allocations: 132.3 kB / 443.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-05/0.2399, allocations: 16.75 kB / 444 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002402/0.2402, allocations: 111 kB / 444.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.2403, allocations: 75.16 kB / 444.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.2404, allocations: 120.9 kB / 444.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004316/0.2408, allocations: 357.5 kB / 444.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2409, allocations: 0 / 444.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2409, allocations: 0 / 444.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.2409, allocations: 0 / 444.6 MB, free: 1.969 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.0008751/0.2418, allocations: 0.6628 MB / 445.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2418, allocations: 14.14 kB / 445.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.15e-05/0.2418, allocations: 41.55 kB / 445.3 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.2419, allocations: 31.16 kB / 445.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.2423, allocations: 326 kB / 445.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.2423, allocations: 13.56 kB / 445.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.2424, allocations: 8.25 kB / 445.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2426, allocations: 151.5 kB / 445.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2427, allocations: 0 / 445.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.2427, allocations: 6.281 kB / 445.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.2427, allocations: 6.531 kB / 445.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.2429, allocations: 68.33 kB / 445.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.2435, allocations: 476.6 kB / 446.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.2438, allocations: 146.7 kB / 446.5 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.2439, allocations: 54.14 kB / 446.6 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.244, allocations: 2.625 kB / 446.6 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.2442, allocations: 139 kB / 446.7 MB, free: 372 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.735e-06/0.2442, allocations: 5.266 kB / 446.7 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.000567/0.2448, allocations: 269.8 kB / 447 MB, free: 248 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.2449, allocations: 107.4 kB / 447.1 MB, free: 120 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.2453, allocations: 377.5 kB / 447.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.2453, allocations: 32.45 kB / 447.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2455, allocations: 163.6 kB / 447.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.2455, allocations: 43.55 kB / 447.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.972e-05/0.2456, allocations: 47.16 kB / 447.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2457, allocations: 349.2 kB / 448.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.2458, allocations: 45.61 kB / 448.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.246, allocations: 140.5 kB / 448.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.2464, allocations: 193.9 kB / 448.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2464, allocations: 1.75 kB / 448.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004038/0.2468, allocations: 225.7 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2468, allocations: 7.359 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2468, allocations: 2.656 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.2468, allocations: 3.094 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.247, allocations: 26.81 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.247, allocations: 8.578 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.2471, allocations: 27.16 kB / 448.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.2471, allocations: 11.62 kB / 448.8 MB, free: 14.93 MB / 334.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.0001997/0.2473, allocations: 184.9 kB / 448.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.2474, allocations: 30.17 kB / 449 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.313e-05/0.2475, allocations: 31 kB / 449 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.2475, allocations: 2.594 kB / 449 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2475, allocations: 0 / 449 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2475, allocations: 5.469 kB / 449 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.2478, allocations: 290.7 kB / 449.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2478, allocations: 0 / 449.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.496e-05/0.2478, allocations: 11.22 kB / 449.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2478, allocations: 1.094 kB / 449.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.2479, allocations: 14.2 kB / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2479, allocations: 1.344 kB / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2479, allocations: 0 / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.2483, allocations: 253.1 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.2484, allocations: 109 kB / 449.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.2484, allocations: 10.28 kB / 449.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-05/0.2485, allocations: 8.578 kB / 449.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.2486, allocations: 14.14 kB / 449.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2486, allocations: 9.469 kB / 449.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002865/0.2489, allocations: 280.5 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2489, allocations: 3.938 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.2492, allocations: 62.52 kB / 450 MB, free: 13.95 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: 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.001544/0.2508, allocations: 1.109 MB / 451.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003402/0.2511, allocations: 153.1 kB / 451.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2512, allocations: 0.5 kB / 451.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.2513, allocations: 72.89 kB / 451.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.2517, allocations: 80.95 kB / 451.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.255, allocations: 2.807 MB / 454.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.2553, allocations: 0.7673 MB / 455 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.2554, allocations: 45.8 kB / 455.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2556, allocations: 89.25 kB / 455.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2556, allocations: 0 / 455.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.2787, allocations: 7.291 MB / 462.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.051, allocations: 3.984 kB / 462.5 MB, free: 5.504 MB / 334.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)