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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 107 kB / 16.4 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.02803/0.02803, allocations: 5.228 MB / 302.5 MB, free: 7.488 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 417.3 MB, free: 25.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09426, allocations: 50.58 MB / 467.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004649/0.09895, allocations: 3.16 MB / 471 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004835/0.1038, allocations: 3.186 MB / 474.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.104, allocations: 8 kB / 474.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008458/0.1049, allocations: 271.1 kB / 474.5 MB, free: 336 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.1068, allocations: 0.7908 MB / 475.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.1071, allocations: 111.8 kB / 475.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.1081, allocations: 0.8523 MB / 476.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007291/0.1089, allocations: 0.5421 MB / 476.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004164/0.1093, allocations: 338.8 kB / 477.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005405/0.1098, allocations: 450.3 kB / 477.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.11, allocations: 64 kB / 477.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.1116, allocations: 0.8929 MB / 478.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003484/0.1119, allocations: 351.1 kB / 478.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004731/0.1124, allocations: 469.7 kB / 479.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001888/0.1143, allocations: 1.522 MB / 480.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1143, allocations: 0 / 480.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1143, allocations: 0 / 480.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.1143, allocations: 0 / 480.8 MB, free: 9.957 MB / 350.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.002789/0.1171, allocations: 1.435 MB / 482.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.1172, allocations: 16.03 kB / 482.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.1173, allocations: 90.7 kB / 482.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003068/0.1204, allocations: 355.3 kB / 482.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.1224, allocations: 1.112 MB / 483.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.1227, allocations: 174 kB / 484 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.1227, allocations: 28 kB / 484 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002006/0.1247, allocations: 0.8371 MB / 484.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1248, allocations: 7.938 kB / 484.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.135e-05/0.1249, allocations: 16 kB / 484.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.855e-05/0.1249, allocations: 11.94 kB / 484.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/0.1277, allocations: 0.9547 MB / 485.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.1304, allocations: 1.945 MB / 487.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.1316, allocations: 382.2 kB / 488.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.1328, allocations: 372.4 kB / 488.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.1329, allocations: 4 kB / 488.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.1343, allocations: 458.1 kB / 489 MB, free: 1.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.923e-06/0.1343, allocations: 0 / 489 MB, free: 1.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003839/0.1381, allocations: 1.133 MB / 490.1 MB, free: 432 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.1382, allocations: 170.2 kB / 490.3 MB, free: 224 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.1406, allocations: 1.47 MB / 491.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.1407, allocations: 33.7 kB / 491.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.1411, allocations: 396.1 kB / 492.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.1411, allocations: 35.66 kB / 492.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1413, allocations: 37.7 kB / 492.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1414, allocations: 318 kB / 492.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.1426, allocations: 359.6 kB / 492.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.1439, allocations: 419.8 kB / 493.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.1461, allocations: 0.6275 MB / 493.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1461, allocations: 0 / 493.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002583/0.1487, allocations: 0.7738 MB / 494.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1487, allocations: 12 kB / 494.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1488, allocations: 0 / 494.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1488, allocations: 0 / 494.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006213/0.1494, allocations: 107.8 kB / 494.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1494, allocations: 3.938 kB / 494.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.1506, allocations: 163.6 kB / 495 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.1506, allocations: 7.938 kB / 495 MB, free: 11.44 MB / 366.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.000448/0.1511, allocations: 310.5 kB / 495.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.1512, allocations: 87.66 kB / 495.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.1514, allocations: 83.28 kB / 495.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1514, allocations: 3.938 kB / 495.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.1514, allocations: 11.92 kB / 495.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1514, allocations: 0 / 495.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008748/0.1523, allocations: 0.7753 MB / 496.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1523, allocations: 4 kB / 496.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.1529, allocations: 115.8 kB / 496.4 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.1529, allocations: 0 / 496.4 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/0.1529, allocations: 4 kB / 496.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1529, allocations: 0 / 496.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.153, allocations: 7.875 kB / 496.4 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/0.1555, allocations: 0.8084 MB / 497.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.1559, allocations: 236.5 kB / 497.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.156, allocations: 48 / 497.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.1571, allocations: 143.8 kB / 497.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1573, allocations: 51.88 kB / 497.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.1573, allocations: 15.92 kB / 497.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001865/0.1592, allocations: 1.104 MB / 498.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1592, allocations: 0 / 498.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007582/0.16, allocations: 283.4 kB / 499 MB, free: 7.324 MB / 366.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.003686/0.1637, allocations: 1.614 MB / 0.4889 GB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.1662, allocations: 0.7335 MB / 0.4896 GB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1662, allocations: 0 / 0.4896 GB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.1675, allocations: 395.6 kB / 0.49 GB, free: 4.562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1685, allocations: 235 kB / 0.4902 GB, free: 4.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.1876, allocations: 9.417 MB / 0.4994 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.1884, allocations: 1.053 MB / 0.5004 GB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005601/0.1889, allocations: 160.5 kB / 0.5006 GB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/0.1895, allocations: 267.3 kB / 0.5008 GB, free: 9.273 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1895, allocations: 0 / 0.5008 GB, free: 9.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2346/0.4241, allocations: 25.33 MB / 0.5256 GB, free: 47.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.577/10, allocations: 16.22 kB / 0.5256 GB, free: 47.12 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.640000735991634] Failed to read output from testmodel.py, exit status != 0: 10.080914321006276 10.096485907 9.979455661 Calling exit ...