Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.Switch2_test.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.001344/0.001344, 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.002388/0.002388, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02787/0.02787, allocations: 5.28 MB / 317.7 MB, free: 13.8 MB / 254.1 MB " [Timeout remaining time 180] Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/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(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: DeltaRobot 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.002002/0.002002, allocations: 71.88 kB / 441.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1123, allocations: 54.55 MB / 496.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004792/0.1171, allocations: 2.982 MB / 499.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004612/0.1217, allocations: 2.934 MB / 0.4906 GB, free: 11.63 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.1219, allocations: 8 kB / 0.4906 GB, free: 11.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007788/0.1227, allocations: 243.2 kB / 0.4908 GB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001845/0.1245, allocations: 0.8062 MB / 0.4916 GB, free: 10.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.1248, allocations: 123.8 kB / 0.4917 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.1259, allocations: 0.8485 MB / 0.4926 GB, free: 9.602 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004697/0.1263, allocations: 264.2 kB / 0.4928 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004425/0.1268, allocations: 350.8 kB / 0.4932 GB, free: 8.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.1274, allocations: 446.2 kB / 0.4936 GB, free: 8.551 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1275, allocations: 64 kB / 0.4936 GB, free: 8.488 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.129, allocations: 0.8384 MB / 0.4945 GB, free: 7.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003895/0.1294, allocations: 370.9 kB / 0.4948 GB, free: 7.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004113/0.1298, allocations: 378.2 kB / 0.4952 GB, free: 6.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.1316, allocations: 1.542 MB / 0.4967 GB, free: 5.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.1316, allocations: 4 kB / 0.4967 GB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1316, allocations: 0 / 0.4967 GB, free: 5.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1316, allocations: 0 / 0.4967 GB, free: 5.363 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002874/0.1345, allocations: 1.376 MB / 0.498 GB, free: 3.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1345, allocations: 8.031 kB / 0.498 GB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.1346, allocations: 86.72 kB / 0.4981 GB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002789/0.1374, allocations: 359.2 kB / 0.4985 GB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.1396, allocations: 1.056 MB / 0.4995 GB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005809/0.1402, allocations: 0.6546 MB / 0.5001 GB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/0.1402, allocations: 36 kB / 0.5002 GB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.1422, allocations: 0.9413 MB / 0.5011 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1423, allocations: 0 / 0.5011 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.1423, allocations: 16 kB / 0.5011 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1423, allocations: 11.94 kB / 0.5011 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.1449, allocations: 0.9585 MB / 0.502 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002942/0.1479, allocations: 1.679 MB / 0.5037 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1491, allocations: 386.2 kB / 0.5041 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/0.1502, allocations: 364.4 kB / 0.5044 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.1502, allocations: 8 kB / 0.5044 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/0.1515, allocations: 449.6 kB / 0.5048 GB, free: 12.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.966e-06/0.1515, allocations: 0 / 0.5048 GB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003696/0.1552, allocations: 1.14 MB / 0.506 GB, free: 11.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1553, allocations: 166.1 kB / 0.5061 GB, free: 11.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002509/0.1578, allocations: 1.474 MB / 0.5075 GB, free: 9.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.958e-05/0.1579, allocations: 29.7 kB / 0.5076 GB, free: 9.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003916/0.1583, allocations: 392.2 kB / 0.508 GB, free: 9.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.498e-05/0.1583, allocations: 43.92 kB / 0.508 GB, free: 9.379 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.1585, allocations: 41.7 kB / 0.508 GB, free: 9.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1586, allocations: 313.9 kB / 0.5083 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1598, allocations: 359.6 kB / 0.5087 GB, free: 8.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.161, allocations: 0.5143 MB / 0.5092 GB, free: 8.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.163, allocations: 0.6205 MB / 0.5098 GB, free: 7.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.163, allocations: 8 kB / 0.5098 GB, free: 7.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002442/0.1654, allocations: 0.7777 MB / 0.5106 GB, free: 6.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1654, allocations: 6.969 kB / 0.5106 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1655, allocations: 0 / 0.5106 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.1655, allocations: 0 / 0.5106 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00057/0.166, allocations: 115.8 kB / 0.5107 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1661, allocations: 7.938 kB / 0.5107 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.1671, allocations: 151.6 kB / 0.5108 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.1671, allocations: 11.98 kB / 0.5108 GB, free: 6.414 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0004756/0.1676, allocations: 317.6 kB / 0.5111 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1678, allocations: 87.44 kB / 0.5112 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.168, allocations: 87.22 kB / 0.5113 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.168, allocations: 0 / 0.5113 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/0.168, allocations: 3.938 kB / 0.5113 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.168, allocations: 0 / 0.5113 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008798/0.1689, allocations: 0.591 MB / 0.5119 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1689, allocations: 0 / 0.5119 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.1694, allocations: 115.8 kB / 0.512 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1694, allocations: 0 / 0.512 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.1695, allocations: 4 kB / 0.512 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1695, allocations: 0 / 0.512 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1695, allocations: 3.938 kB / 0.512 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.1718, allocations: 0.8083 MB / 0.5128 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.1722, allocations: 159.3 kB / 0.5129 GB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.1724, allocations: 12 kB / 0.513 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009664/0.1733, allocations: 131.8 kB / 0.5131 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.1735, allocations: 51.88 kB / 0.5131 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/0.1735, allocations: 15.92 kB / 0.5131 GB, free: 3.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001815/0.1754, allocations: 1.104 MB / 0.5142 GB, free: 2.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1754, allocations: 0 / 0.5142 GB, free: 2.863 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008132/0.1762, allocations: 287.4 kB / 0.5145 GB, free: 2.582 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: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003594/0.1798, allocations: 1.633 MB / 0.5161 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.1821, allocations: 0.7257 MB / 0.5168 GB, free: 200 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.1821, allocations: 4 kB / 0.5168 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2245/0.4066, allocations: 382 kB / 0.5172 GB, free: 34.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.4078, allocations: 236 kB / 0.5174 GB, free: 34.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/0.4259, allocations: 9.42 MB / 0.5266 GB, free: 32.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.4265, allocations: 456.1 kB / 0.527 GB, free: 32.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006434/0.4271, allocations: 161.8 kB / 0.5272 GB, free: 32.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004585/0.4276, allocations: 265.5 kB / 0.5274 GB, free: 31.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4276, allocations: 0 / 0.5274 GB, free: 31.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07291/0.5005, allocations: 28.77 MB / 0.5555 GB, free: 11.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.65, allocations: 4 kB / 0.5555 GB, free: 11.56 MB / 382.1 MB " [Timeout remaining time 647] (rm -f DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.Switch2_test.sim & python3 -m fmpy simulate --output-file DeltaRobot_DeltaRobot.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.347030884120613] Failed to read output from testmodel.py, exit status != 0: 12.767647403292358 12.789192384 12.652789896 Calling exit ...