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.004878/0.004878, allocations: 101.1 kB / 15.73 MB, free: 6.008 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.001258/0.001258, allocations: 192.7 kB / 16.67 MB, free: 5.93 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.473/1.473, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0628/0.0628, allocations: 10.74 MB / 280.7 MB, free: 10.38 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.002103/0.002103, allocations: 71.89 kB / 390.3 MB, free: 5.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2757, allocations: 49.03 MB / 439.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003766/0.2795, allocations: 1.985 MB / 441.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.2814, allocations: 1.178 MB / 442.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.2817, allocations: 6.562 kB / 442.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000975/0.2827, allocations: 272.1 kB / 442.8 MB, free: 2.797 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.0006246/0.2833, allocations: 200 kB / 443 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008428/0.2841, allocations: 287.5 kB / 443.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005903/0.2847, allocations: 338.2 kB / 443.6 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2849, allocations: 33.14 kB / 443.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002791/0.2852, allocations: 137.6 kB / 443.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.2854, allocations: 140.4 kB / 443.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.133e-05/0.2854, allocations: 16.56 kB / 443.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002756/0.2857, allocations: 111.6 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.2858, allocations: 78.48 kB / 444.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.2859, allocations: 111.7 kB / 444.2 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.2866, allocations: 358.3 kB / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2866, allocations: 0 / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2866, allocations: 0 / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.2866, allocations: 0 / 444.6 MB, free: 1.973 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.001219/0.2878, allocations: 0.6627 MB / 445.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2878, allocations: 18.36 kB / 445.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.182e-05/0.2879, allocations: 44.67 kB / 445.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.288, allocations: 31.72 kB / 445.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.2884, allocations: 313.4 kB / 445.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.2885, allocations: 17.17 kB / 445.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.2885, allocations: 21.14 kB / 445.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.2888, allocations: 151.1 kB / 445.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2888, allocations: 0 / 445.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.2888, allocations: 6.531 kB / 445.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2888, allocations: 3.188 kB / 445.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.289, allocations: 67.38 kB / 445.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000772/0.2898, allocations: 483.9 kB / 446.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.2902, allocations: 133.9 kB / 446.5 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.2903, allocations: 51.44 kB / 446.5 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.2903, allocations: 2 kB / 446.6 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.2906, allocations: 139.9 kB / 446.7 MB, free: 368 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.2906, allocations: 0 / 446.7 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006262/0.2912, allocations: 265.4 kB / 446.9 MB, free: 256 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.2913, allocations: 111.9 kB / 447.1 MB, free: 124 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.2917, allocations: 376.2 kB / 447.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.2918, allocations: 34.95 kB / 447.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.2919, allocations: 153.7 kB / 447.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.447e-05/0.292, allocations: 47 kB / 447.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.63e-05/0.2921, allocations: 52.42 kB / 447.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.2923, allocations: 345.5 kB / 448 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.2924, allocations: 44.92 kB / 448.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.2926, allocations: 144 kB / 448.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003624/0.2929, allocations: 190.9 kB / 448.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.293, allocations: 1.25 kB / 448.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004444/0.2934, allocations: 222.2 kB / 448.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2934, allocations: 10.22 kB / 448.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2934, allocations: 2.75 kB / 448.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.2934, allocations: 4.219 kB / 448.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.2936, allocations: 34.47 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.2936, allocations: 7.094 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.2937, allocations: 24.67 kB / 448.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.2937, allocations: 12.28 kB / 448.7 MB, free: 14.92 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.0002552/0.294, allocations: 185.5 kB / 448.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.294, allocations: 31.53 kB / 448.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.2941, allocations: 37.61 kB / 449 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2941, allocations: 0 / 449 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2941, allocations: 0 / 449 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2941, allocations: 7.938 kB / 449 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.2945, allocations: 291.5 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2945, allocations: 1.094 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.2945, allocations: 10.58 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.2945, allocations: 1.469 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.2945, allocations: 5.5 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2946, allocations: 0.8438 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2946, allocations: 1.156 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.295, allocations: 258.1 kB / 449.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.096e-05/0.2951, allocations: 104 kB / 449.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.2951, allocations: 6.328 kB / 449.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.2952, allocations: 9.938 kB / 449.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.2953, allocations: 9.891 kB / 449.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.2953, allocations: 17.92 kB / 449.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.2957, allocations: 275.2 kB / 450 MB, free: 13.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2957, allocations: 0 / 450 MB, free: 13.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.296, allocations: 62.64 kB / 450 MB, free: 13.93 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.002254/0.2983, allocations: 1.117 MB / 451.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003637/0.2986, allocations: 144.8 kB / 451.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2986, allocations: 3.906 kB / 451.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.2988, allocations: 60.97 kB / 451.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.2992, allocations: 75.89 kB / 451.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.3032, allocations: 2.813 MB / 454.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.3037, allocations: 0.7621 MB / 455 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.3038, allocations: 42.05 kB / 455 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.304, allocations: 85.75 kB / 455.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.304, allocations: 0 / 455.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03402/0.338, allocations: 7.313 MB / 462.4 MB, free: 5.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.789/9.127, allocations: 3.938 kB / 462.4 MB, free: 5.5 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)