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.001277/0.001277, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001358/0.001358, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.421/1.421, allocations: 230.6 MB / 252.8 MB, free: 8.98 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.02805/0.02805, allocations: 5.288 MB / 314.1 MB, free: 15.06 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.001902/0.001902, allocations: 63.91 kB / 436.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08996/0.09186, allocations: 54.52 MB / 491.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004322/0.09618, allocations: 3.198 MB / 494.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004379/0.1006, allocations: 3.264 MB / 497.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1008, allocations: 4 kB / 497.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007587/0.1015, allocations: 283.1 kB / 498 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00177/0.1033, allocations: 0.7946 MB / 498.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.1036, allocations: 107.8 kB / 498.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1047, allocations: 0.8626 MB / 499.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005532/0.1052, allocations: 395.2 kB / 0.4885 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.1057, allocations: 342.8 kB / 0.4888 GB, free: 12.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005484/0.1062, allocations: 466.2 kB / 0.4892 GB, free: 11.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.715e-05/0.1063, allocations: 60 kB / 0.4893 GB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.1079, allocations: 0.9475 MB / 0.4902 GB, free: 10.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003638/0.1082, allocations: 370.9 kB / 0.4906 GB, free: 10.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004525/0.1087, allocations: 465.7 kB / 0.491 GB, free: 9.766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0018/0.1105, allocations: 1.542 MB / 0.4925 GB, free: 8.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1105, allocations: 0 / 0.4925 GB, free: 8.219 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1105, allocations: 4 kB / 0.4925 GB, free: 8.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.1105, allocations: 4 kB / 0.4925 GB, free: 8.211 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.002786/0.1133, allocations: 1.451 MB / 0.494 GB, free: 6.707 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1133, allocations: 8.031 kB / 0.494 GB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.1135, allocations: 90.72 kB / 0.4941 GB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.1164, allocations: 359.2 kB / 0.4944 GB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.1184, allocations: 1.104 MB / 0.4955 GB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.1187, allocations: 170 kB / 0.4956 GB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.32e-05/0.1187, allocations: 32 kB / 0.4957 GB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.1207, allocations: 0.8448 MB / 0.4965 GB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1207, allocations: 4 kB / 0.4965 GB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.048e-05/0.1208, allocations: 16 kB / 0.4965 GB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.1208, allocations: 11.94 kB / 0.4965 GB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002742/0.1235, allocations: 0.9546 MB / 0.4975 GB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.1264, allocations: 1.945 MB / 0.4994 GB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.1276, allocations: 378.2 kB / 0.4997 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.1288, allocations: 368.7 kB / 0.5001 GB, free: 280 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.1288, allocations: 3.938 kB / 0.5001 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/0.1302, allocations: 458.9 kB / 0.5005 GB, free: 15.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.335e-06/0.1302, allocations: 0 / 0.5005 GB, free: 15.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003872/0.134, allocations: 1.133 MB / 0.5016 GB, free: 14.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.1342, allocations: 170.1 kB / 0.5018 GB, free: 14.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/0.1367, allocations: 1.466 MB / 0.5032 GB, free: 12.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.093e-05/0.1368, allocations: 37.7 kB / 0.5032 GB, free: 12.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.1372, allocations: 392.2 kB / 0.5036 GB, free: 12.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.979e-05/0.1373, allocations: 39.64 kB / 0.5037 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.1374, allocations: 37.7 kB / 0.5037 GB, free: 12.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1376, allocations: 314 kB / 0.504 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.1388, allocations: 363.5 kB / 0.5043 GB, free: 11.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.14, allocations: 419.9 kB / 0.5047 GB, free: 11.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.1422, allocations: 0.621 MB / 0.5053 GB, free: 10.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1422, allocations: 0 / 0.5053 GB, free: 10.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002658/0.1449, allocations: 0.7777 MB / 0.5061 GB, free: 9.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.1449, allocations: 8 kB / 0.5061 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1449, allocations: 0 / 0.5061 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1449, allocations: 0 / 0.5061 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/0.1455, allocations: 115.8 kB / 0.5062 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.1455, allocations: 3.938 kB / 0.5062 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.1467, allocations: 163.6 kB / 0.5064 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.1467, allocations: 7.984 kB / 0.5064 GB, free: 9.684 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.0004437/0.1471, allocations: 310.5 kB / 0.5067 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.1473, allocations: 83.44 kB / 0.5068 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.1475, allocations: 83.28 kB / 0.5068 GB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1475, allocations: 4 kB / 0.5068 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1475, allocations: 3.938 kB / 0.5068 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.1475, allocations: 0 / 0.5068 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008904/0.1484, allocations: 0.7868 MB / 0.5076 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1484, allocations: 0 / 0.5076 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005772/0.1489, allocations: 111.7 kB / 0.5077 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1489, allocations: 0 / 0.5077 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.149, allocations: 11.98 kB / 0.5077 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.149, allocations: 4 kB / 0.5077 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.149, allocations: 3.938 kB / 0.5077 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/0.1515, allocations: 0.8045 MB / 0.5085 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.1519, allocations: 236.4 kB / 0.5088 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.152, allocations: 4 kB / 0.5088 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.153, allocations: 143.8 kB / 0.5089 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.1532, allocations: 51.83 kB / 0.5089 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.126e-05/0.1532, allocations: 7.984 kB / 0.509 GB, free: 6.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.1551, allocations: 1.104 MB / 0.51 GB, free: 5.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1551, allocations: 0 / 0.51 GB, free: 5.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007935/0.1559, allocations: 291.4 kB / 0.5103 GB, free: 5.566 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.003551/0.1594, allocations: 1.624 MB / 0.5119 GB, free: 3.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.1618, allocations: 0.7296 MB / 0.5126 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1618, allocations: 3.938 kB / 0.5126 GB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.163, allocations: 391.5 kB / 0.513 GB, free: 2.797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.1641, allocations: 232 kB / 0.5132 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1821/0.3462, allocations: 9.417 MB / 0.5224 GB, free: 33.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.3466, allocations: 1.047 MB / 0.5234 GB, free: 33.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004805/0.3471, allocations: 159 kB / 0.5236 GB, free: 33.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.3476, allocations: 264.8 kB / 0.5238 GB, free: 32.82 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3476, allocations: 0 / 0.5238 GB, free: 32.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04838/0.396, allocations: 26.32 MB / 0.5495 GB, free: 16.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.251/9.647, allocations: 64 / 0.5495 GB, free: 16.46 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.160847866005497] Failed to read output from testmodel.py, exit status != 0: 9.725888246000977 9.73635052 9.623667975 Calling exit ...