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.001598/0.001598, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.002046/0.002046, allocations: 212 kB / 22.24 MB, free: 4.855 MB / 14.72 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 1.387/1.387, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.06257/0.06257, allocations: 11.35 MB / 323.8 MB, free: 8.039 MB / 254.1 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: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.91 kB / 451 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1122, allocations: 56.07 MB / 0.4952 GB, free: 2.176 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003521/0.1158, allocations: 1.969 MB / 0.4971 GB, free: 200 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.1181, allocations: 1.333 MB / 0.4984 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1182, allocations: 7.938 kB / 0.4984 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008011/0.119, allocations: 292.8 kB / 0.4987 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005472/0.1196, allocations: 255.1 kB / 0.4989 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006287/0.1202, allocations: 250.5 kB / 0.4991 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004138/0.1206, allocations: 363 kB / 0.4995 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1207, allocations: 33.19 kB / 0.4995 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1209, allocations: 139.5 kB / 0.4997 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1211, allocations: 159.3 kB / 0.4998 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.1212, allocations: 20 kB / 0.4998 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.1214, allocations: 107.9 kB / 0.4999 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1215, allocations: 83.75 kB / 0.5 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1216, allocations: 95.39 kB / 0.5001 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.1221, allocations: 366.5 kB / 0.5004 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1221, allocations: 4 kB / 0.5005 GB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1221, allocations: 4 kB / 0.5005 GB, free: 12.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1221, allocations: 0 / 0.5005 GB, free: 12.72 MB / 382.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.0009392/0.123, allocations: 0.5856 MB / 0.501 GB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1231, allocations: 12.03 kB / 0.501 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.1231, allocations: 46.73 kB / 0.5011 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.149e-05/0.1232, allocations: 32.75 kB / 0.5011 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.1236, allocations: 274.4 kB / 0.5014 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1236, allocations: 8.125 kB / 0.5014 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.1237, allocations: 12 kB / 0.5014 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.1239, allocations: 125.6 kB / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1239, allocations: 0 / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.124, allocations: 8 kB / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.124, allocations: 0 / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.1241, allocations: 71.95 kB / 0.5016 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.1248, allocations: 427.5 kB / 0.502 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.1251, allocations: 142.7 kB / 0.5021 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.1253, allocations: 52.83 kB / 0.5022 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.1253, allocations: 0 / 0.5022 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.1255, allocations: 131.3 kB / 0.5023 GB, free: 10.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.1255, allocations: 4 kB / 0.5023 GB, free: 10.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006153/0.1261, allocations: 282.8 kB / 0.5026 GB, free: 10.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.1262, allocations: 63.33 kB / 0.5026 GB, free: 10.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004628/0.1267, allocations: 408.5 kB / 0.503 GB, free: 9.902 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.1267, allocations: 33.7 kB / 0.5031 GB, free: 9.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.1268, allocations: 156.4 kB / 0.5032 GB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.829e-05/0.1269, allocations: 47.62 kB / 0.5033 GB, free: 9.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-05/0.1269, allocations: 45.91 kB / 0.5033 GB, free: 9.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1271, allocations: 346.7 kB / 0.5036 GB, free: 9.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.1272, allocations: 55.83 kB / 0.5037 GB, free: 9.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.1274, allocations: 181.7 kB / 0.5039 GB, free: 8.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.1278, allocations: 200.4 kB / 0.5041 GB, free: 8.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1278, allocations: 0 / 0.5041 GB, free: 8.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003944/0.1282, allocations: 225.2 kB / 0.5043 GB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1282, allocations: 8 kB / 0.5043 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.1282, allocations: 4 kB / 0.5043 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1282, allocations: 256 / 0.5043 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.1283, allocations: 39.92 kB / 0.5043 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.1283, allocations: 4 kB / 0.5043 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.1285, allocations: 23.88 kB / 0.5043 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1285, allocations: 11.94 kB / 0.5044 GB, free: 8.434 MB / 382.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.0002162/0.1287, allocations: 180.3 kB / 0.5045 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.1287, allocations: 35.75 kB / 0.5046 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/0.1292, allocations: 250.8 kB / 0.5048 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1292, allocations: 0 / 0.5048 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1292, allocations: 4 kB / 0.5048 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1292, allocations: 3.984 kB / 0.5048 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002684/0.1295, allocations: 248.5 kB / 0.505 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1295, allocations: 128 / 0.505 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.056e-05/0.1295, allocations: 19.98 kB / 0.5051 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1295, allocations: 0 / 0.5051 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.1296, allocations: 4 kB / 0.5051 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1296, allocations: 0 / 0.5051 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1296, allocations: 4 kB / 0.5051 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004548/0.13, allocations: 268.7 kB / 0.5053 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.1301, allocations: 39.67 kB / 0.5054 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.1301, allocations: 8 kB / 0.5054 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.1302, allocations: 7.984 kB / 0.5054 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.1303, allocations: 15.98 kB / 0.5054 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1303, allocations: 7.984 kB / 0.5054 GB, free: 7.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003237/0.1306, allocations: 295 kB / 0.5057 GB, free: 6.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1306, allocations: 0 / 0.5057 GB, free: 6.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.1309, allocations: 79.75 kB / 0.5058 GB, free: 6.91 MB / 382.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,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.002274/0.1332, allocations: 1.16 MB / 0.5069 GB, free: 5.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003394/0.1335, allocations: 151.8 kB / 0.507 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1335, allocations: 3.938 kB / 0.507 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.1337, allocations: 72.39 kB / 0.5071 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.1341, allocations: 81.28 kB / 0.5072 GB, free: 5.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.1376, allocations: 2.884 MB / 0.51 GB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.1378, allocations: 163.1 kB / 0.5102 GB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.1379, allocations: 46.25 kB / 0.5102 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.1381, allocations: 95.39 kB / 0.5103 GB, free: 2.277 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1381, allocations: 0 / 0.5103 GB, free: 2.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2467/0.3848, allocations: 8.276 MB / 0.5184 GB, free: 21.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.29, allocations: 5.891 kB / 0.5184 GB, free: 21.5 MB / 382.1 MB " [Timeout remaining time 649] (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: 14.309063952881843] Failed to read output from testmodel.py, exit status != 0: 11.452407205011696 11.465702203 11.340181853 Calling exit ...