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.001312/0.001312, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001475/0.001475, allocations: 212.5 kB / 22.24 MB, free: 5.262 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.785 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.02761/0.02761, allocations: 5.298 MB / 317.7 MB, free: 13.66 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.001958/0.001958, allocations: 67.89 kB / 441.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1081, allocations: 54.55 MB / 496.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004554/0.1126, allocations: 2.983 MB / 499.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004419/0.117, allocations: 2.938 MB / 0.4906 GB, free: 11.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.1172, allocations: 4 kB / 0.4906 GB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007216/0.1179, allocations: 251.2 kB / 0.4909 GB, free: 11.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.1197, allocations: 0.7933 MB / 0.4916 GB, free: 10.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.12, allocations: 115.9 kB / 0.4917 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.1211, allocations: 0.8561 MB / 0.4926 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004766/0.1216, allocations: 260.2 kB / 0.4928 GB, free: 9.055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004915/0.1221, allocations: 354.8 kB / 0.4932 GB, free: 8.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005917/0.1226, allocations: 450.2 kB / 0.4936 GB, free: 8.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.1228, allocations: 60 kB / 0.4936 GB, free: 8.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.1244, allocations: 0.8345 MB / 0.4945 GB, free: 7.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003987/0.1248, allocations: 374.9 kB / 0.4948 GB, free: 7.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.1252, allocations: 370.3 kB / 0.4952 GB, free: 6.641 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.1271, allocations: 1.55 MB / 0.4967 GB, free: 5.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1271, allocations: 0 / 0.4967 GB, free: 5.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1271, allocations: 0 / 0.4967 GB, free: 5.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1271, allocations: 0 / 0.4967 GB, free: 5.086 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.00286/0.1299, allocations: 1.375 MB / 0.498 GB, free: 3.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.13, allocations: 15.97 kB / 0.498 GB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1301, allocations: 90.72 kB / 0.4981 GB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002825/0.1329, allocations: 359.2 kB / 0.4985 GB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.135, allocations: 1.04 MB / 0.4995 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005518/0.1356, allocations: 0.6625 MB / 0.5001 GB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.308e-05/0.1357, allocations: 32 kB / 0.5002 GB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/0.1377, allocations: 0.9413 MB / 0.5011 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1377, allocations: 0 / 0.5011 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.1377, allocations: 16 kB / 0.5011 GB, free: 304 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1377, allocations: 15.94 kB / 0.5011 GB, free: 288 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.1404, allocations: 0.9625 MB / 0.5021 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.1433, allocations: 1.687 MB / 0.5037 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1445, allocations: 374.2 kB / 0.5041 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.1457, allocations: 372.4 kB / 0.5044 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.1457, allocations: 96 / 0.5044 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.147, allocations: 458.8 kB / 0.5049 GB, free: 12.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.147, allocations: 0 / 0.5049 GB, free: 12.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003708/0.1507, allocations: 1.136 MB / 0.506 GB, free: 11.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.1509, allocations: 166.1 kB / 0.5061 GB, free: 11.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.1533, allocations: 1.474 MB / 0.5076 GB, free: 9.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.1534, allocations: 29.7 kB / 0.5076 GB, free: 9.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003946/0.1538, allocations: 396.2 kB / 0.508 GB, free: 9.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.626e-05/0.1539, allocations: 43.64 kB / 0.508 GB, free: 9.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.154, allocations: 37.7 kB / 0.508 GB, free: 9.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1541, allocations: 310 kB / 0.5083 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.1553, allocations: 363.6 kB / 0.5087 GB, free: 8.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.1566, allocations: 0.5104 MB / 0.5092 GB, free: 7.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/0.1587, allocations: 0.6173 MB / 0.5098 GB, free: 7.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1587, allocations: 0 / 0.5098 GB, free: 7.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002527/0.1612, allocations: 0.7808 MB / 0.5105 GB, free: 6.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.1612, allocations: 12.16 kB / 0.5106 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1612, allocations: 0 / 0.5106 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1612, allocations: 3.938 kB / 0.5106 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005872/0.1618, allocations: 111.8 kB / 0.5107 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.1618, allocations: 11.92 kB / 0.5107 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.1629, allocations: 159.6 kB / 0.5108 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.1629, allocations: 8 kB / 0.5108 GB, free: 6.125 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.0004381/0.1634, allocations: 305.7 kB / 0.5111 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1635, allocations: 87.44 kB / 0.5112 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.1637, allocations: 83.22 kB / 0.5113 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1637, allocations: 4 kB / 0.5113 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.1637, allocations: 11.81 kB / 0.5113 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1637, allocations: 0 / 0.5113 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007903/0.1645, allocations: 0.595 MB / 0.5119 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1645, allocations: 0 / 0.5119 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/0.165, allocations: 111.8 kB / 0.512 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.165, allocations: 4 kB / 0.512 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.1651, allocations: 0 / 0.512 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1651, allocations: 0 / 0.512 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1651, allocations: 3.938 kB / 0.512 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.1675, allocations: 0.8045 MB / 0.5128 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.168, allocations: 167.3 kB / 0.513 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.1681, allocations: 4 kB / 0.513 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.1691, allocations: 139.8 kB / 0.5131 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1693, allocations: 51.91 kB / 0.5131 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.1693, allocations: 11.98 kB / 0.5132 GB, free: 3.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001899/0.1712, allocations: 1.1 MB / 0.5142 GB, free: 2.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1712, allocations: 4 kB / 0.5142 GB, free: 2.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008138/0.172, allocations: 291.4 kB / 0.5145 GB, free: 2.293 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.00383/0.1758, allocations: 1.63 MB / 0.5161 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2091/0.385, allocations: 0.7218 MB / 0.5168 GB, free: 33.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.385, allocations: 0.75 kB / 0.5168 GB, free: 33.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.3861, allocations: 391.8 kB / 0.5172 GB, free: 33.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.3872, allocations: 220.8 kB / 0.5174 GB, free: 33.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/0.4053, allocations: 9.426 MB / 0.5266 GB, free: 31.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.4058, allocations: 453.5 kB / 0.527 GB, free: 31.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006358/0.4065, allocations: 162.8 kB / 0.5272 GB, free: 31.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004935/0.407, allocations: 264.2 kB / 0.5274 GB, free: 31.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.407, allocations: 0 / 0.5274 GB, free: 31.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05879/0.4657, allocations: 28.77 MB / 0.5555 GB, free: 10.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.63, allocations: 7.438 kB / 0.5555 GB, free: 10.86 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.198463409673423] Failed to read output from testmodel.py, exit status != 0: 12.749744912143797 12.76696384 12.635847065 Calling exit ...