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.001309/0.001309, allocations: 110.6 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.001494/0.001494, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.977 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.0663/0.0663, allocations: 11.34 MB / 323.8 MB, free: 8.234 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.002234/0.002234, allocations: 75.88 kB / 451 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.117, allocations: 56.06 MB / 0.4952 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003834/0.1209, allocations: 2.063 MB / 0.4972 GB, free: 280 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.1236, allocations: 1.43 MB / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.1238, allocations: 3.938 kB / 0.4986 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009371/0.1247, allocations: 315.1 kB / 0.4989 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007001/0.1254, allocations: 262.1 kB / 0.4992 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.1262, allocations: 255.4 kB / 0.4994 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005768/0.1268, allocations: 375 kB / 0.4998 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1269, allocations: 33.22 kB / 0.4998 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000299/0.1272, allocations: 151.4 kB / 0.5 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.1275, allocations: 175.3 kB / 0.5001 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.1276, allocations: 20 kB / 0.5001 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.1279, allocations: 123.8 kB / 0.5003 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.128, allocations: 91.72 kB / 0.5004 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1281, allocations: 135.1 kB / 0.5005 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005916/0.1287, allocations: 398.4 kB / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1287, allocations: 0 / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1287, allocations: 0 / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1288, allocations: 0 / 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.001183/0.1299, allocations: 0.6206 MB / 0.5015 GB, free: 11.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.13, allocations: 8.031 kB / 0.5015 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.794e-05/0.13, allocations: 46.73 kB / 0.5015 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.1301, allocations: 36.7 kB / 0.5016 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/0.1306, allocations: 289 kB / 0.5018 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.1306, allocations: 15.92 kB / 0.5018 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.1307, allocations: 16 kB / 0.5019 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.131, allocations: 150.4 kB / 0.502 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.131, allocations: 0 / 0.502 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.575e-05/0.131, allocations: 4 kB / 0.502 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1311, allocations: 0 / 0.502 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.1312, allocations: 75.89 kB / 0.5021 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007983/0.132, allocations: 467.4 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.1325, allocations: 146.1 kB / 0.5027 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1326, allocations: 52.83 kB / 0.5027 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.1326, allocations: 8 kB / 0.5027 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.1329, allocations: 131.3 kB / 0.5028 GB, free: 10.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.724e-06/0.1329, allocations: 0 / 0.5028 GB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006447/0.1335, allocations: 287.5 kB / 0.5031 GB, free: 10.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.1336, allocations: 110.8 kB / 0.5032 GB, free: 9.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.1342, allocations: 469.6 kB / 0.5037 GB, free: 9.461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.1342, allocations: 33.7 kB / 0.5037 GB, free: 9.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1344, allocations: 168.4 kB / 0.5039 GB, free: 9.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.1344, allocations: 47.67 kB / 0.5039 GB, free: 9.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.549e-05/0.1345, allocations: 53.69 kB / 0.504 GB, free: 9.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.1347, allocations: 354.7 kB / 0.5043 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1348, allocations: 40.42 kB / 0.5043 GB, free: 8.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.135, allocations: 152.3 kB / 0.5045 GB, free: 8.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.1354, allocations: 200.3 kB / 0.5047 GB, free: 8.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.1354, allocations: 4 kB / 0.5047 GB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004486/0.1358, allocations: 229.2 kB / 0.5049 GB, free: 8.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1358, allocations: 8 kB / 0.5049 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1359, allocations: 0 / 0.5049 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.1359, allocations: 4.25 kB / 0.5049 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.136, allocations: 35.92 kB / 0.5049 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.136, allocations: 7.938 kB / 0.505 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1361, allocations: 23.88 kB / 0.505 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.1362, 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.0002434/0.1364, allocations: 188.3 kB / 0.5052 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.1365, allocations: 39.77 kB / 0.5052 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004941/0.137, allocations: 240.8 kB / 0.5054 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.137, allocations: 4 kB / 0.5054 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.137, allocations: 0 / 0.5054 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.137, allocations: 3.984 kB / 0.5054 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.1373, allocations: 284.4 kB / 0.5057 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1373, allocations: 128 / 0.5057 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.1373, allocations: 15.98 kB / 0.5057 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1374, allocations: 0 / 0.5057 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1374, allocations: 12 kB / 0.5057 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1374, allocations: 3.984 kB / 0.5057 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1374, allocations: 3.938 kB / 0.5057 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004636/0.1378, allocations: 267.3 kB / 0.506 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.455e-05/0.1379, allocations: 35.8 kB / 0.506 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.138, allocations: 3.938 kB / 0.506 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.573e-05/0.1381, allocations: 11.98 kB / 0.5061 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.1381, allocations: 19.98 kB / 0.5061 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1381, allocations: 4 kB / 0.5061 GB, free: 6.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003999/0.1385, allocations: 343.1 kB / 0.5064 GB, free: 6.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1385, allocations: 0 / 0.5064 GB, free: 6.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.1389, allocations: 67.86 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.002317/0.1412, allocations: 1.136 MB / 0.5076 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003986/0.1416, allocations: 146.3 kB / 0.5077 GB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1416, allocations: 0 / 0.5077 GB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.1418, allocations: 75.84 kB / 0.5078 GB, free: 5.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.1422, allocations: 75.78 kB / 0.5079 GB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/0.1473, allocations: 3.104 MB / 0.5109 GB, free: 1.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.1478, allocations: 0.7831 MB / 0.5117 GB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.1479, allocations: 46.94 kB / 0.5117 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.1481, allocations: 99.39 kB / 0.5118 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1481, allocations: 4 kB / 0.5118 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2665/0.4145, allocations: 8.156 MB / 0.5198 GB, free: 22.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.69, allocations: 18.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=50 --tolerance=1e-06 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.461458853911608] Failed to read output from testmodel.py, exit status != 0: 11.854425322962925 11.86912454 11.737459052 Calling exit ...