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.001584/0.001584, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002467/0.002467, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.02824/0.02824, allocations: 5.297 MB / 318.5 MB, free: 13.86 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.002027/0.002027, allocations: 67.91 kB / 442.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1123, allocations: 54.55 MB / 497.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004656/0.117, allocations: 3.212 MB / 0.4888 GB, free: 14.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005006/0.122, allocations: 3.288 MB / 0.492 GB, free: 11.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.1222, allocations: 4 kB / 0.492 GB, free: 11.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007503/0.1229, allocations: 271.2 kB / 0.4923 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001876/0.1248, allocations: 0.8062 MB / 0.4931 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.1251, allocations: 103.9 kB / 0.4932 GB, free: 9.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1262, allocations: 0.8523 MB / 0.494 GB, free: 9.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000455/0.1267, allocations: 260.2 kB / 0.4942 GB, free: 8.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004791/0.1272, allocations: 354.8 kB / 0.4946 GB, free: 8.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005922/0.1278, allocations: 470.2 kB / 0.495 GB, free: 8.066 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1279, allocations: 60 kB / 0.4951 GB, free: 8.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001732/0.1296, allocations: 0.9514 MB / 0.496 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003871/0.13, allocations: 374.9 kB / 0.4964 GB, free: 6.688 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004597/0.1305, allocations: 465.7 kB / 0.4968 GB, free: 6.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001904/0.1324, allocations: 1.542 MB / 0.4983 GB, free: 4.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1324, allocations: 0 / 0.4983 GB, free: 4.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1324, allocations: 3.938 kB / 0.4983 GB, free: 4.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.1324, allocations: 0 / 0.4983 GB, free: 4.68 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.00285/0.1352, allocations: 1.379 MB / 0.4997 GB, free: 3.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1353, allocations: 8.031 kB / 0.4997 GB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.024e-05/0.1353, allocations: 8.844 kB / 0.4997 GB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.1354, allocations: 86.72 kB / 0.4998 GB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002971/0.1384, allocations: 367 kB / 0.5001 GB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.1404, allocations: 1.044 MB / 0.5011 GB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005163/0.1409, allocations: 0.6508 MB / 0.5018 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.102e-05/0.141, allocations: 39.98 kB / 0.5018 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.143, allocations: 0.8487 MB / 0.5026 GB, free: 16 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.143, allocations: 3.984 kB / 0.5027 GB, free: 12 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.828e-05/0.1431, allocations: 19.92 kB / 0.5027 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.1431, allocations: 8 kB / 0.5027 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.1458, allocations: 0.9585 MB / 0.5036 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.1488, allocations: 1.893 MB / 0.5055 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.1501, allocations: 382.1 kB / 0.5058 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.1513, allocations: 364.5 kB / 0.5062 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.1513, allocations: 0 / 0.5062 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.1527, allocations: 465.8 kB / 0.5066 GB, free: 11.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.104e-06/0.1527, allocations: 4 kB / 0.5066 GB, free: 11.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003833/0.1565, allocations: 1.133 MB / 0.5077 GB, free: 10.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.1566, allocations: 158.2 kB / 0.5079 GB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002485/0.1591, allocations: 1.478 MB / 0.5093 GB, free: 9.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.1591, allocations: 29.7 kB / 0.5094 GB, free: 9.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.1595, allocations: 388.2 kB / 0.5097 GB, free: 8.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.1596, allocations: 55.64 kB / 0.5098 GB, free: 8.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1597, allocations: 37.72 kB / 0.5098 GB, free: 8.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1599, allocations: 314 kB / 0.5101 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.161, allocations: 367.6 kB / 0.5105 GB, free: 7.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.1622, allocations: 411.9 kB / 0.5109 GB, free: 7.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.1643, allocations: 0.6197 MB / 0.5115 GB, free: 6.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1643, allocations: 8 kB / 0.5115 GB, free: 6.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002586/0.1669, allocations: 0.7777 MB / 0.5122 GB, free: 6.035 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1669, allocations: 4 kB / 0.5122 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1669, allocations: 3.938 kB / 0.5122 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1669, allocations: 0 / 0.5122 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.1675, allocations: 115.8 kB / 0.5123 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.1675, allocations: 4 kB / 0.5123 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.1687, allocations: 155.6 kB / 0.5125 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.624e-05/0.1687, allocations: 8 kB / 0.5125 GB, free: 5.75 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.0004694/0.1692, allocations: 309.7 kB / 0.5128 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.1694, allocations: 87.44 kB / 0.5129 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.1695, allocations: 83.22 kB / 0.513 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1695, allocations: 7.922 kB / 0.513 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.1695, allocations: 224 / 0.513 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1695, allocations: 3.984 kB / 0.513 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008879/0.1704, allocations: 0.7546 MB / 0.5137 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1704, allocations: 0 / 0.5137 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.171, allocations: 111.8 kB / 0.5138 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.171, allocations: 0 / 0.5138 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.171, allocations: 4 kB / 0.5138 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.171, allocations: 7.938 kB / 0.5138 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.171, allocations: 7.922 kB / 0.5138 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.1736, allocations: 0.8065 MB / 0.5146 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003966/0.174, allocations: 159.3 kB / 0.5148 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.1741, allocations: 3.938 kB / 0.5148 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.1752, allocations: 147.7 kB / 0.5149 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.1754, allocations: 43.94 kB / 0.515 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.1754, allocations: 11.98 kB / 0.515 GB, free: 3.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002038/0.1775, allocations: 1.1 MB / 0.516 GB, free: 2.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1775, allocations: 0 / 0.516 GB, free: 2.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001048/0.1785, allocations: 291.4 kB / 0.5163 GB, free: 1.754 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.003796/0.1823, allocations: 1.626 MB / 0.5179 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2443/0.4267, allocations: 0.7283 MB / 0.5186 GB, free: 33.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4267, allocations: 0 / 0.5186 GB, free: 33.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.4278, allocations: 385.4 kB / 0.519 GB, free: 33.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.4291, allocations: 231.1 kB / 0.5192 GB, free: 33.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0201/0.4492, allocations: 9.435 MB / 0.5284 GB, free: 31.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007787/0.45, allocations: 1.05 MB / 0.5295 GB, free: 30.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006292/0.4506, allocations: 157.5 kB / 0.5296 GB, free: 30.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.4511, allocations: 266 kB / 0.5299 GB, free: 30.6 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.4511, allocations: 0 / 0.5299 GB, free: 30.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05416/0.5053, allocations: 26.58 MB / 0.5558 GB, free: 11.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.35, allocations: 13.52 kB / 0.5558 GB, free: 11.96 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.093225304968655] Failed to read output from testmodel.py, exit status != 0: 13.515042943996377 13.527472885 13.391930849 Calling exit ...