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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008133/0.0008133, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8848/0.8848, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03641/0.03641, allocations: 8.609 MB / 267.8 MB, free: 5.117 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 395.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.006e-05, allocations: 6.219 kB / 395.1 MB, free: 2.656 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002802/0.002822, allocations: 1.963 MB / 397 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.004724, allocations: 1.34 MB / 398.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.004875, allocations: 7.875 kB / 398.4 MB, free: 15.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006815/0.005556, allocations: 279.1 kB / 398.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000392/0.005948, allocations: 262.9 kB / 398.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.006429, allocations: 258.6 kB / 399.2 MB, free: 14.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.006783, allocations: 370.9 kB / 399.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.006908, allocations: 40.78 kB / 399.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.007098, allocations: 187.5 kB / 399.8 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.007234, allocations: 131.7 kB / 399.9 MB, free: 13.83 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.007262, allocations: 20 kB / 399.9 MB, free: 13.81 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000457/0.007719, allocations: 111.8 kB / 400 MB, free: 13.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.974e-05/0.007819, allocations: 79.69 kB / 400.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.014e-05/0.007889, allocations: 75.77 kB / 400.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.008244, allocations: 370.8 kB / 400.5 MB, free: 13.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.008246, allocations: 3.938 kB / 400.5 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008248, allocations: 0 / 400.5 MB, free: 13.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.008252, allocations: 0 / 400.5 MB, free: 13.18 MB / 378.7 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.0007675/0.009019, allocations: 0.5896 MB / 401.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.00906, allocations: 8.031 kB / 401.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.009099, allocations: 42.73 kB / 401.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.054e-05/0.009159, allocations: 40.69 kB / 401.2 MB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.009495, allocations: 277.7 kB / 401.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.009511, allocations: 8.562 kB / 401.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.009528, allocations: 12.38 kB / 401.5 MB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.009742, allocations: 129.5 kB / 401.6 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.009751, allocations: 0 / 401.6 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.009765, allocations: 7.984 kB / 401.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.009769, allocations: 0 / 401.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.009883, allocations: 75.77 kB / 401.7 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000958/0.01084, allocations: 427.6 kB / 402.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.01119, allocations: 134.6 kB / 402.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.536e-05/0.01126, allocations: 52.83 kB / 402.3 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.01128, allocations: 8 kB / 402.3 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.01146, allocations: 127.3 kB / 402.4 MB, free: 11.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.01146, allocations: 4 kB / 402.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003958/0.01185, allocations: 272.4 kB / 402.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.01189, allocations: 59.39 kB / 402.8 MB, free: 10.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.01222, allocations: 404.5 kB / 403.2 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.01224, allocations: 33.7 kB / 403.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.01232, allocations: 168.4 kB / 403.4 MB, free: 10.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/0.01235, allocations: 47.61 kB / 403.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.0124, allocations: 49.64 kB / 403.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.01249, allocations: 346.8 kB / 403.8 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.106e-05/0.01256, allocations: 43.98 kB / 403.8 MB, free: 9.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.0127, allocations: 193.5 kB / 404 MB, free: 9.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.01291, allocations: 196.4 kB / 404.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.01292, allocations: 0 / 404.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000258/0.01317, allocations: 233.3 kB / 404.4 MB, free: 8.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01319, allocations: 8 kB / 404.5 MB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.01319, allocations: 3.984 kB / 404.5 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.01321, allocations: 4 kB / 404.5 MB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.629e-05/0.01329, allocations: 36.05 kB / 404.5 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.0133, allocations: 4 kB / 404.5 MB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.01337, allocations: 19.89 kB / 404.5 MB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.01339, allocations: 12 kB / 404.5 MB, free: 8.891 MB / 378.7 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.0001601/0.01355, allocations: 176.4 kB / 404.7 MB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.01358, allocations: 35.77 kB / 404.7 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003129/0.0139, allocations: 244.7 kB / 405 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.0139, allocations: 0 / 405 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.0139, allocations: 0 / 405 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.01391, allocations: 0 / 405 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.0141, allocations: 260.4 kB / 405.2 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0141, allocations: 4 kB / 405.2 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.814e-05/0.01413, allocations: 15.94 kB / 405.3 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01413, allocations: 0 / 405.3 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.01414, allocations: 11.98 kB / 405.3 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.155e-06/0.01415, allocations: 0 / 405.3 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.01415, allocations: 3.984 kB / 405.3 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.01441, allocations: 266.1 kB / 405.5 MB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.952e-05/0.01444, allocations: 23.81 kB / 405.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.01446, allocations: 11.98 kB / 405.6 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.346e-05/0.01451, allocations: 4 kB / 405.6 MB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.01457, allocations: 19.97 kB / 405.6 MB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.01459, allocations: 12 kB / 405.6 MB, free: 7.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002075/0.01479, allocations: 295 kB / 405.9 MB, free: 7.449 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01479, allocations: 0 / 405.9 MB, free: 7.449 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002251/0.01502, allocations: 67.86 kB / 406 MB, free: 7.383 MB / 378.7 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.001188/0.01621, allocations: 1.17 MB / 407.1 MB, free: 6.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002447/0.01645, allocations: 162.3 kB / 407.3 MB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01645, allocations: 0 / 407.3 MB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.63e-05/0.01655, allocations: 75.81 kB / 407.4 MB, free: 6.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.0168, allocations: 73.97 kB / 407.4 MB, free: 6.074 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.01919, allocations: 2.918 MB / 410.3 MB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.01929, allocations: 159.1 kB / 410.5 MB, free: 2.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.971e-05/0.01938, allocations: 50.2 kB / 410.6 MB, free: 2.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.01948, allocations: 96.45 kB / 410.6 MB, free: 2.699 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01948, allocations: 0 / 410.6 MB, free: 2.699 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.03965, allocations: 8.412 MB / 419.1 MB, free: 10.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.254, allocations: 7.938 kB / 419.1 MB, free: 10.35 MB / 394.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.22380144149065] Failed to read output from testmodel.py, exit status != 0: 7.359633774496615 7.371003449 7.361051128 Calling exit ...