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.001371/0.001371, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001748/0.001748, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.489/1.489, allocations: 230.6 MB / 256 MB, free: 8.004 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.06563/0.06563, allocations: 11.34 MB / 323.8 MB, free: 8.227 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.002048/0.002048, allocations: 75.89 kB / 451 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1082, allocations: 56.07 MB / 0.4952 GB, free: 2.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003587/0.1117, allocations: 2.045 MB / 0.4972 GB, free: 280 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002583/0.1143, allocations: 1.426 MB / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.1145, allocations: 11.88 kB / 0.4986 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008941/0.1154, allocations: 287.2 kB / 0.4989 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006028/0.116, allocations: 251.1 kB / 0.4991 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007023/0.1167, allocations: 258.3 kB / 0.4994 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005081/0.1172, allocations: 363 kB / 0.4997 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1173, allocations: 33.2 kB / 0.4998 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1175, allocations: 147.4 kB / 0.4999 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002403/0.1178, allocations: 155.3 kB / 0.5001 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.163e-05/0.1178, allocations: 20 kB / 0.5001 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.1181, allocations: 123.8 kB / 0.5002 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1182, allocations: 75.75 kB / 0.5003 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1183, allocations: 119.3 kB / 0.5004 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.1189, allocations: 370.4 kB / 0.5007 GB, free: 12.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1189, allocations: 4 kB / 0.5007 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1189, allocations: 0 / 0.5007 GB, free: 12.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1189, allocations: 0 / 0.5007 GB, free: 12.66 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.0011/0.12, allocations: 0.5934 MB / 0.5013 GB, free: 12.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.12, allocations: 12.03 kB / 0.5013 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.1201, allocations: 42.73 kB / 0.5014 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.1201, allocations: 32.75 kB / 0.5014 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.1206, allocations: 274.6 kB / 0.5017 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.1206, allocations: 11.94 kB / 0.5017 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.1206, allocations: 12 kB / 0.5017 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003369/0.121, allocations: 158.3 kB / 0.5018 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.121, allocations: 0 / 0.5018 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.121, allocations: 4 kB / 0.5018 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.121, allocations: 4 kB / 0.5018 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.1212, allocations: 67.91 kB / 0.5019 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007273/0.1219, allocations: 451.4 kB / 0.5023 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1223, allocations: 138.7 kB / 0.5025 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1224, allocations: 48.84 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.1224, allocations: 4 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.1227, allocations: 127.3 kB / 0.5026 GB, free: 10.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.452e-06/0.1227, allocations: 0 / 0.5026 GB, free: 10.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006346/0.1233, allocations: 271.7 kB / 0.5029 GB, free: 10.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/0.1234, allocations: 110.8 kB / 0.503 GB, free: 10.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004686/0.1239, allocations: 404.5 kB / 0.5034 GB, free: 9.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.1239, allocations: 33.7 kB / 0.5034 GB, free: 9.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.124, allocations: 156.4 kB / 0.5036 GB, free: 9.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.536e-05/0.1241, allocations: 43.69 kB / 0.5036 GB, free: 9.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.1242, allocations: 61.62 kB / 0.5037 GB, free: 9.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1244, allocations: 342.8 kB / 0.504 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1245, allocations: 48.17 kB / 0.504 GB, free: 9.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.1247, allocations: 143.8 kB / 0.5042 GB, free: 8.867 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003324/0.125, allocations: 192.3 kB / 0.5044 GB, free: 8.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.125, allocations: 0 / 0.5044 GB, free: 8.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004123/0.1254, allocations: 225.2 kB / 0.5046 GB, free: 8.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1254, allocations: 8 kB / 0.5046 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1255, allocations: 4 kB / 0.5046 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1255, allocations: 0 / 0.5046 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.1256, allocations: 31.92 kB / 0.5046 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.1256, allocations: 11.92 kB / 0.5046 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.1257, allocations: 27.95 kB / 0.5047 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1258, allocations: 12.25 kB / 0.5047 GB, free: 8.328 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.0002323/0.126, allocations: 180.4 kB / 0.5048 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.1261, allocations: 31.77 kB / 0.5049 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/0.1266, allocations: 228.8 kB / 0.5051 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.1266, allocations: 4 kB / 0.5051 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1266, allocations: 4 kB / 0.5051 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.1266, allocations: 3.938 kB / 0.5051 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.1269, allocations: 264.5 kB / 0.5054 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1269, allocations: 0 / 0.5054 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.721e-05/0.127, allocations: 8 kB / 0.5054 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.127, allocations: 0 / 0.5054 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.127, allocations: 11.98 kB / 0.5054 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.127, allocations: 0 / 0.5054 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.127, allocations: 0 / 0.5054 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.1274, allocations: 261.4 kB / 0.5056 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.1275, allocations: 35.8 kB / 0.5057 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.1275, allocations: 0 / 0.5057 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.129e-05/0.1276, allocations: 15.98 kB / 0.5057 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.1277, allocations: 7.984 kB / 0.5057 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.1277, allocations: 15.92 kB / 0.5057 GB, free: 7.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003292/0.128, allocations: 291 kB / 0.506 GB, free: 6.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 0.506 GB, free: 6.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1284, allocations: 63.94 kB / 0.506 GB, free: 6.852 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 (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.002257/0.1306, allocations: 1.115 MB / 0.5071 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004062/0.131, allocations: 151.7 kB / 0.5073 GB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.131, allocations: 0 / 0.5073 GB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.1312, allocations: 59.91 kB / 0.5073 GB, free: 5.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004518/0.1316, allocations: 102.6 kB / 0.5074 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/0.1355, allocations: 2.861 MB / 0.5102 GB, free: 2.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.1359, allocations: 0.7674 MB / 0.511 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.1361, allocations: 50.23 kB / 0.511 GB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.1362, allocations: 91.41 kB / 0.5111 GB, free: 1.641 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1362, allocations: 0 / 0.5111 GB, free: 1.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2248/0.361, allocations: 7.664 MB / 0.5186 GB, free: 22.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.81, allocations: 14.72 kB / 0.5186 GB, free: 22.25 MB / 382.1 MB " [Timeout remaining time 648] (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.922384799996507] Failed to read output from testmodel.py, exit status != 0: 11.96953155000665 11.983108453 11.861434666 Calling exit ...