Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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.00135/0.00135, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001484/0.001484, allocations: 214.8 kB / 22.25 MB, free: 5.129 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.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.984 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.06539/0.06539, allocations: 11.35 MB / 323.8 MB, free: 8.215 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_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.002278/0.002278, allocations: 71.89 kB / 451 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1251, allocations: 56.07 MB / 0.4952 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003696/0.1288, allocations: 2.051 MB / 0.4972 GB, free: 280 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.1313, allocations: 1.43 MB / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1315, allocations: 7.938 kB / 0.4986 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009447/0.1324, allocations: 315.1 kB / 0.4989 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007376/0.1331, allocations: 255.1 kB / 0.4992 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007196/0.1339, allocations: 262.9 kB / 0.4994 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004955/0.1344, allocations: 371 kB / 0.4998 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1345, allocations: 29.2 kB / 0.4998 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.1347, allocations: 171.3 kB / 0.5 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.135, allocations: 159.4 kB / 0.5001 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.745e-05/0.135, allocations: 16 kB / 0.5001 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.1353, allocations: 131.8 kB / 0.5003 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1354, allocations: 87.75 kB / 0.5003 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1356, allocations: 139.1 kB / 0.5005 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.1361, allocations: 390.4 kB / 0.5009 GB, free: 12.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1361, allocations: 4 kB / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1361, allocations: 0 / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1361, allocations: 3.938 kB / 0.5009 GB, free: 12.54 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.001195/0.1373, allocations: 0.6284 MB / 0.5015 GB, free: 11.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1374, allocations: 8.031 kB / 0.5015 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.1374, allocations: 38.75 kB / 0.5015 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.83e-05/0.1375, allocations: 44.69 kB / 0.5016 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004669/0.138, allocations: 289 kB / 0.5018 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.138, allocations: 15.94 kB / 0.5019 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.138, allocations: 7.984 kB / 0.5019 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.1383, allocations: 154.4 kB / 0.502 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1383, allocations: 0 / 0.502 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1384, allocations: 4 kB / 0.502 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1384, allocations: 8 kB / 0.502 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.1386, allocations: 71.84 kB / 0.5021 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007805/0.1393, allocations: 459.5 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004626/0.1398, allocations: 146.7 kB / 0.5027 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.1399, allocations: 48.84 kB / 0.5027 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.14, allocations: 11.98 kB / 0.5027 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.1403, allocations: 129.5 kB / 0.5028 GB, free: 10.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.1403, allocations: 4 kB / 0.5028 GB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006806/0.141, allocations: 289.3 kB / 0.5031 GB, free: 10.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.141, allocations: 106.8 kB / 0.5032 GB, free: 9.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.1416, allocations: 465.6 kB / 0.5037 GB, free: 9.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1416, allocations: 33.7 kB / 0.5037 GB, free: 9.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1418, allocations: 172.4 kB / 0.5039 GB, free: 9.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.686e-05/0.1418, allocations: 43.69 kB / 0.5039 GB, free: 9.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/0.1419, allocations: 49.64 kB / 0.504 GB, free: 9.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1421, allocations: 354.7 kB / 0.5043 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1422, allocations: 48.41 kB / 0.5043 GB, free: 8.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.1424, allocations: 156.2 kB / 0.5045 GB, free: 8.547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.1428, allocations: 192.4 kB / 0.5047 GB, free: 8.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1428, allocations: 0 / 0.5047 GB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004215/0.1432, allocations: 229.3 kB / 0.5049 GB, free: 8.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.1432, allocations: 10.33 kB / 0.5049 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.984e-06/0.1432, allocations: 7.938 kB / 0.5049 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.1433, allocations: 4 kB / 0.5049 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.1434, allocations: 31.98 kB / 0.5049 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1434, allocations: 3.938 kB / 0.5049 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.1435, allocations: 23.89 kB / 0.505 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.1435, allocations: 11.94 kB / 0.505 GB, free: 8.008 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) \"status of the timer\" 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: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$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,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002492/0.1438, allocations: 196.5 kB / 0.5052 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.1438, allocations: 39.75 kB / 0.5052 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/0.1443, allocations: 244.8 kB / 0.5054 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1443, allocations: 0 / 0.5054 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1443, allocations: 0 / 0.5054 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1443, allocations: 4 kB / 0.5054 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.1446, allocations: 292.4 kB / 0.5057 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1446, allocations: 0 / 0.5057 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.6e-05/0.1447, allocations: 7.938 kB / 0.5057 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1447, allocations: 4 kB / 0.5057 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.1447, allocations: 3.984 kB / 0.5057 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.1447, allocations: 4 kB / 0.5057 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.1447, allocations: 3.984 kB / 0.5057 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000459/0.1452, allocations: 275.3 kB / 0.506 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.1452, allocations: 23.81 kB / 0.506 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.1453, allocations: 11.98 kB / 0.506 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.1454, allocations: 8 kB / 0.5061 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.1454, allocations: 11.97 kB / 0.5061 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.1454, allocations: 12 kB / 0.5061 GB, free: 6.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003954/0.1458, allocations: 339.1 kB / 0.5064 GB, free: 6.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1458, allocations: 4 kB / 0.5064 GB, free: 6.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.1462, allocations: 63.88 kB / 0.5065 GB, free: 6.426 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,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 (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002346/0.1485, allocations: 1.153 MB / 0.5076 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.1489, allocations: 152 kB / 0.5077 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1489, allocations: 0 / 0.5077 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.1491, allocations: 66.27 kB / 0.5078 GB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.1495, allocations: 82.64 kB / 0.5079 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.1538, allocations: 3.102 MB / 0.5109 GB, free: 1.887 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004777/0.1542, allocations: 0.7831 MB / 0.5117 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.1544, allocations: 46.95 kB / 0.5117 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.1546, allocations: 99.39 kB / 0.5118 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1546, allocations: 0 / 0.5118 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2419/0.3965, allocations: 8.162 MB / 0.5198 GB, free: 22.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.86, allocations: 8.75 kB / 0.5198 GB, free: 22 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge_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_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.97272262700426] Failed to read output from testmodel.py, exit status != 0: 12.02934318500047 12.043479363 11.904649584 Calling exit ...