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.001516/0.001516, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001779/0.001779, allocations: 218.5 kB / 23.03 MB, free: 4.949 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.8 MB, free: 7.812 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.02762/0.02762, allocations: 5.285 MB / 318.5 MB, free: 13.72 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="cs",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.001918/0.001918, allocations: 63.89 kB / 442.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1178, allocations: 54.55 MB / 497.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004904/0.1227, allocations: 2.975 MB / 0.4885 GB, free: 14.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004945/0.1276, allocations: 2.934 MB / 0.4914 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.1279, allocations: 4 kB / 0.4914 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000821/0.1287, allocations: 247.2 kB / 0.4916 GB, free: 11.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.1306, allocations: 0.8024 MB / 0.4924 GB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.1309, allocations: 107.8 kB / 0.4925 GB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.1321, allocations: 0.859 MB / 0.4933 GB, free: 9.445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.1325, allocations: 264.2 kB / 0.4936 GB, free: 9.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004755/0.133, allocations: 346.7 kB / 0.4939 GB, free: 8.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006132/0.1336, allocations: 474.3 kB / 0.4944 GB, free: 8.371 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1337, allocations: 64 kB / 0.4944 GB, free: 8.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.1353, allocations: 0.8501 MB / 0.4952 GB, free: 7.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003942/0.1357, allocations: 367 kB / 0.4956 GB, free: 7.098 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004347/0.1361, allocations: 382.2 kB / 0.496 GB, free: 6.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.138, allocations: 1.538 MB / 0.4975 GB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.138, allocations: 0 / 0.4975 GB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.138, allocations: 0 / 0.4975 GB, free: 5.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.138, allocations: 0 / 0.4975 GB, free: 5.18 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.002792/0.1408, allocations: 1.379 MB / 0.4988 GB, free: 3.762 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.1408, allocations: 12.03 kB / 0.4988 GB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.545e-05/0.1408, allocations: 8.844 kB / 0.4988 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.141, allocations: 86.72 kB / 0.4989 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002784/0.1437, allocations: 363 kB / 0.4993 GB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.1457, allocations: 1.044 MB / 0.5003 GB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005463/0.1463, allocations: 0.6547 MB / 0.5009 GB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.882e-05/0.1463, allocations: 43.94 kB / 0.501 GB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.1483, allocations: 0.9375 MB / 0.5019 GB, free: 400 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1484, allocations: 7.938 kB / 0.5019 GB, free: 392 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.1484, allocations: 19.88 kB / 0.5019 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1484, allocations: 8 kB / 0.5019 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.1511, allocations: 0.9547 MB / 0.5028 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.1539, allocations: 1.683 MB / 0.5045 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.155, allocations: 378.2 kB / 0.5048 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.1561, allocations: 372.4 kB / 0.5052 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.1562, allocations: 4 kB / 0.5052 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.1574, allocations: 458.8 kB / 0.5056 GB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.805e-06/0.1574, allocations: 0 / 0.5056 GB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.00364/0.1611, allocations: 1.137 MB / 0.5067 GB, free: 11.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.1612, allocations: 162.2 kB / 0.5069 GB, free: 11.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/0.1636, allocations: 1.47 MB / 0.5083 GB, free: 9.641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.12e-05/0.1637, allocations: 33.7 kB / 0.5084 GB, free: 9.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003938/0.1641, allocations: 392.2 kB / 0.5087 GB, free: 9.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.27e-05/0.1642, allocations: 47.58 kB / 0.5088 GB, free: 9.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1643, allocations: 37.7 kB / 0.5088 GB, free: 9.125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1645, allocations: 314 kB / 0.5091 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.1656, allocations: 359.6 kB / 0.5095 GB, free: 8.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.1668, allocations: 0.5067 MB / 0.51 GB, free: 7.914 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/0.1687, allocations: 0.6241 MB / 0.5106 GB, free: 7.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1687, allocations: 7.938 kB / 0.5106 GB, free: 7.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002437/0.1712, allocations: 0.7817 MB / 0.5113 GB, free: 6.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.1712, allocations: 11.98 kB / 0.5114 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1712, allocations: 0 / 0.5114 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1712, allocations: 0 / 0.5114 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005642/0.1718, allocations: 111.8 kB / 0.5115 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.1718, allocations: 4 kB / 0.5115 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.1729, allocations: 159.6 kB / 0.5116 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.173, allocations: 4 kB / 0.5116 GB, free: 6.207 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.0005316/0.1735, allocations: 313.6 kB / 0.5119 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.1737, allocations: 83.44 kB / 0.512 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.1738, allocations: 91.22 kB / 0.5121 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.1738, allocations: 3.938 kB / 0.5121 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1738, allocations: 0 / 0.5121 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1738, allocations: 0 / 0.5121 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009184/0.1747, allocations: 0.595 MB / 0.5127 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1748, allocations: 0 / 0.5127 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.1753, allocations: 111.8 kB / 0.5128 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1753, allocations: 0 / 0.5128 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.082e-05/0.1754, allocations: 15.98 kB / 0.5128 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.1754, allocations: 3.938 kB / 0.5128 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.1754, allocations: 3.984 kB / 0.5128 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.1779, allocations: 0.8083 MB / 0.5136 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003785/0.1782, allocations: 155.3 kB / 0.5137 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.1784, allocations: 7.984 kB / 0.5137 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.1794, allocations: 143.7 kB / 0.5139 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.1796, allocations: 43.94 kB / 0.5139 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.1796, allocations: 12 kB / 0.5139 GB, free: 3.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002013/0.1816, allocations: 1.1 MB / 0.515 GB, free: 2.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1816, allocations: 0 / 0.515 GB, free: 2.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008847/0.1825, allocations: 291.3 kB / 0.5153 GB, free: 2.367 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.003599/0.1861, allocations: 1.629 MB / 0.5169 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2288/0.4149, allocations: 0.7266 MB / 0.5176 GB, free: 33.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4149, allocations: 2.438 kB / 0.5176 GB, free: 33.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.4161, allocations: 392.2 kB / 0.518 GB, free: 33.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4173, allocations: 223.2 kB / 0.5182 GB, free: 33.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.4352, allocations: 9.422 MB / 0.5274 GB, free: 32.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.4357, allocations: 456.9 kB / 0.5278 GB, free: 32.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005962/0.4363, allocations: 160.4 kB / 0.528 GB, free: 32.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.4368, allocations: 265.4 kB / 0.5282 GB, free: 31.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4368, allocations: 0 / 0.5282 GB, free: 31.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05881/0.4956, allocations: 28.15 MB / 0.5557 GB, free: 11.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.57, allocations: 7.688 kB / 0.5557 GB, free: 11.99 MB / 382.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.23832411901094] Failed to read output from testmodel.py, exit status != 0: 13.743149228976108 13.754855857 13.613807506 Calling exit ...