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.001697/0.001697, allocations: 109.4 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.002159/0.002159, allocations: 219.2 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.415/1.415, allocations: 230.6 MB / 256 MB, free: 8.012 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.0276/0.0276, allocations: 5.298 MB / 317.7 MB, free: 13.93 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.001933/0.001933, allocations: 67.91 kB / 442 MB, free: 8.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1071, allocations: 54.56 MB / 496.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004557/0.1116, allocations: 3.206 MB / 499.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004511/0.1162, allocations: 3.284 MB / 0.4912 GB, free: 11.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.1163, allocations: 4 kB / 0.4912 GB, free: 11.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000749/0.1171, allocations: 275.2 kB / 0.4915 GB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.1188, allocations: 0.8101 MB / 0.4923 GB, free: 10.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.119, allocations: 99.89 kB / 0.4924 GB, free: 10.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.1201, allocations: 0.8589 MB / 0.4932 GB, free: 9.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.1205, allocations: 264.2 kB / 0.4935 GB, free: 8.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.121, allocations: 346.8 kB / 0.4938 GB, free: 8.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006004/0.1216, allocations: 470.2 kB / 0.4943 GB, free: 8.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1217, allocations: 68 kB / 0.4943 GB, free: 8.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.1234, allocations: 0.9397 MB / 0.4952 GB, free: 7.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003982/0.1238, allocations: 378.9 kB / 0.4956 GB, free: 6.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004973/0.1243, allocations: 465.7 kB / 0.4961 GB, free: 6.359 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002127/0.1264, allocations: 1.542 MB / 0.4976 GB, free: 4.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1265, allocations: 4 kB / 0.4976 GB, free: 4.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1265, allocations: 0 / 0.4976 GB, free: 4.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1265, allocations: 0 / 0.4976 GB, free: 4.809 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.002886/0.1294, allocations: 1.372 MB / 0.4989 GB, free: 3.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.1294, allocations: 12.03 kB / 0.4989 GB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1295, allocations: 90.66 kB / 0.499 GB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/0.1323, allocations: 363.2 kB / 0.4993 GB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.1344, allocations: 1.048 MB / 0.5004 GB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005471/0.1349, allocations: 0.6586 MB / 0.501 GB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.135, allocations: 32 kB / 0.501 GB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.1369, allocations: 0.8448 MB / 0.5019 GB, free: 160 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1369, allocations: 3.938 kB / 0.5019 GB, free: 156 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.448e-05/0.1369, allocations: 20 kB / 0.5019 GB, free: 136 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.1369, allocations: 11.94 kB / 0.5019 GB, free: 124 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00251/0.1394, allocations: 0.9585 MB / 0.5028 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002905/0.1424, allocations: 1.893 MB / 0.5047 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1435, allocations: 378.1 kB / 0.505 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.1445, allocations: 372.4 kB / 0.5054 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.1446, allocations: 4 kB / 0.5054 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.1458, allocations: 458.9 kB / 0.5058 GB, free: 12.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.894e-06/0.1458, allocations: 0 / 0.5058 GB, free: 12.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003441/0.1492, allocations: 1.133 MB / 0.507 GB, free: 10.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.1494, allocations: 166.2 kB / 0.5071 GB, free: 10.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.1517, allocations: 1.47 MB / 0.5085 GB, free: 9.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.998e-05/0.1518, allocations: 33.7 kB / 0.5086 GB, free: 9.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.1522, allocations: 388.2 kB / 0.5089 GB, free: 8.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.461e-05/0.1523, allocations: 47.7 kB / 0.509 GB, free: 8.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.1524, allocations: 37.7 kB / 0.509 GB, free: 8.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1526, allocations: 310 kB / 0.5093 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.1536, allocations: 367.6 kB / 0.5097 GB, free: 8.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.1547, allocations: 418.5 kB / 0.5101 GB, free: 7.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.1566, allocations: 0.6212 MB / 0.5107 GB, free: 6.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.1566, allocations: 0 / 0.5107 GB, free: 6.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002383/0.159, allocations: 0.7816 MB / 0.5114 GB, free: 6.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.159, allocations: 6.969 kB / 0.5115 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.159, allocations: 8 kB / 0.5115 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1591, allocations: 0 / 0.5115 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000548/0.1596, allocations: 111.8 kB / 0.5116 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1596, allocations: 3.938 kB / 0.5116 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.1607, allocations: 159.6 kB / 0.5117 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.1607, allocations: 8 kB / 0.5117 GB, free: 5.887 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.0004824/0.1612, allocations: 305.7 kB / 0.512 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1613, allocations: 83.44 kB / 0.5121 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.1615, allocations: 91.22 kB / 0.5122 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1615, allocations: 0 / 0.5122 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.1615, allocations: 4.156 kB / 0.5122 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.1615, allocations: 7.984 kB / 0.5122 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009037/0.1624, allocations: 0.7468 MB / 0.5129 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1624, allocations: 4 kB / 0.5129 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005375/0.1629, allocations: 115.8 kB / 0.513 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1629, allocations: 0 / 0.513 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.163, allocations: 8 kB / 0.513 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.163, allocations: 3.938 kB / 0.5131 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.163, allocations: 3.938 kB / 0.5131 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.1653, allocations: 0.8068 MB / 0.5138 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003786/0.1656, allocations: 159.3 kB / 0.514 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.1658, allocations: 8 kB / 0.514 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.1667, allocations: 135.8 kB / 0.5141 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.1669, allocations: 51.91 kB / 0.5142 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.702e-05/0.1669, allocations: 11.98 kB / 0.5142 GB, free: 3.281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00181/0.1687, allocations: 1.108 MB / 0.5153 GB, free: 2.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1687, allocations: 3.938 kB / 0.5153 GB, free: 2.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007951/0.1695, allocations: 283.4 kB / 0.5156 GB, free: 1.895 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.00332/0.1728, allocations: 1.63 MB / 0.5171 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2008/0.3736, allocations: 0.7267 MB / 0.5179 GB, free: 33.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.3736, allocations: 0 / 0.5179 GB, free: 33.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3747, allocations: 384.9 kB / 0.5182 GB, free: 33.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.3758, allocations: 225.3 kB / 0.5184 GB, free: 33.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.017/0.3928, allocations: 9.427 MB / 0.5276 GB, free: 32.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.3935, allocations: 1.053 MB / 0.5287 GB, free: 31.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.394, allocations: 160.3 kB / 0.5288 GB, free: 31.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000449/0.3945, allocations: 264.4 kB / 0.5291 GB, free: 31.08 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3945, allocations: 0 / 0.5291 GB, free: 31.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05363/0.4481, allocations: 26.55 MB / 0.555 GB, free: 12.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.98, allocations: 2.812 kB / 0.555 GB, free: 12.6 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 & /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 sys.exit(0), Time elapsed: 15.508600174915045] Failed to read output from testmodel.py, exit status != 0: 13.091547983931378 13.105825979 12.975992198 Calling exit ...