Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.4 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2387/0.2387, allocations: 46.93 MB / 357.7 MB, free: 10.22 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 83.86 kB / 0.4916 GB, free: 7.766 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1406, allocations: 66.04 MB / 0.5561 GB, free: 5.598 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001579/0.1421, allocations: 490.5 kB / 0.5566 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006786/0.1428, allocations: 255.9 kB / 0.5568 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.664e-05/0.1428, allocations: 0 / 0.5568 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.205e-05/0.1429, allocations: 0 / 0.5568 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.925e-06/0.1429, allocations: 3.938 kB / 0.5568 GB, free: 4.859 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.1432, allocations: 51.81 kB / 0.5569 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.457e-05/0.1433, allocations: 0 / 0.5569 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.914e-05/0.1433, allocations: 0 / 0.5569 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.556e-05/0.1433, allocations: 8 kB / 0.5569 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.604e-05/0.1433, allocations: 3.984 kB / 0.5569 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.1434, allocations: 0 / 0.5569 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1435, allocations: 63.95 kB / 0.557 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.388e-06/0.1435, allocations: 3.984 kB / 0.557 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.925e-05/0.1435, allocations: 0 / 0.557 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.1437, allocations: 59.81 kB / 0.557 GB, free: 4.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1437, allocations: 3.938 kB / 0.557 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1437, allocations: 0 / 0.557 GB, free: 4.668 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1437, allocations: 0 / 0.557 GB, free: 4.668 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003833/0.1441, allocations: 357.1 kB / 0.5574 GB, free: 4.262 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1441, allocations: 12.03 kB / 0.5574 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.1442, allocations: 30.75 kB / 0.5574 GB, free: 4.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.1442, allocations: 4.938 kB / 0.5574 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.1443, allocations: 164.4 kB / 0.5576 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.1444, allocations: 384 / 0.5576 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.1444, allocations: 384 / 0.5576 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.155e-05/0.1445, allocations: 38.19 kB / 0.5576 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1445, allocations: 3.938 kB / 0.5576 GB, free: 3.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.1445, allocations: 0 / 0.5576 GB, free: 3.961 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1445, allocations: 4 kB / 0.5576 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.1445, allocations: 4 kB / 0.5576 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.1446, allocations: 141.7 kB / 0.5578 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.3e-05/0.1447, allocations: 18.58 kB / 0.5578 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.122e-05/0.1447, allocations: 12.94 kB / 0.5578 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.1447, allocations: 0 / 0.5578 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.1448, allocations: 60.2 kB / 0.5578 GB, free: 3.648 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 2.865e-06/0.1448, allocations: 11.92 kB / 0.5579 GB, free: 3.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001785/0.1449, allocations: 63.34 kB / 0.5579 GB, free: 3.562 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.145, allocations: 81.09 kB / 0.558 GB, free: 3.465 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.314e-05/0.145, allocations: 97.81 kB / 0.5581 GB, free: 3.359 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.1451, allocations: 25.7 kB / 0.5581 GB, free: 3.328 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.1451, allocations: 89.78 kB / 0.5582 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.1451, allocations: 0 / 0.5582 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.1451, allocations: 9.719 kB / 0.5582 GB, free: 3.223 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1453, allocations: 315 kB / 0.5585 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.134e-05/0.1453, allocations: 4 kB / 0.5585 GB, free: 2.902 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.606e-06/0.1453, allocations: 3.938 kB / 0.5585 GB, free: 2.898 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.57e-05/0.1454, allocations: 64.27 kB / 0.5586 GB, free: 2.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1454, allocations: 0 / 0.5586 GB, free: 2.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.629e-05/0.1455, allocations: 63.39 kB / 0.5586 GB, free: 2.746 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.1455, allocations: 29.7 kB / 0.5587 GB, free: 2.711 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1455, allocations: 4.031 kB / 0.5587 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1455, allocations: 4 kB / 0.5587 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1455, allocations: 0 / 0.5587 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1455, allocations: 0 / 0.5587 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.1455, allocations: 4 kB / 0.5587 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1455, allocations: 0 / 0.5587 GB, free: 2.699 MB / 414.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001123/0.1457, allocations: 135.5 kB / 0.5588 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.1457, allocations: 7.938 kB / 0.5588 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.227e-06/0.1457, allocations: 7.062 kB / 0.5588 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1457, allocations: 4 kB / 0.5588 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1457, allocations: 3.938 kB / 0.5588 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1457, allocations: 0 / 0.5588 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.1458, allocations: 149.7 kB / 0.559 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1458, allocations: 0 / 0.559 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1458, allocations: 4 kB / 0.559 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.1458, allocations: 0 / 0.559 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1458, allocations: 3.938 kB / 0.559 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1458, allocations: 0 / 0.559 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1458, allocations: 4 kB / 0.559 GB, free: 2.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.1459, allocations: 94.83 kB / 0.5591 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.146, allocations: 77.11 kB / 0.5591 GB, free: 2.113 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.146, allocations: 7.875 kB / 0.5592 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.146, allocations: 0 / 0.5592 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.425e-05/0.146, allocations: 4 kB / 0.5592 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.146, allocations: 0 / 0.5592 GB, free: 2.102 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.664e-05/0.1461, allocations: 75.28 kB / 0.5592 GB, free: 2.027 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1461, allocations: 0 / 0.5592 GB, free: 2.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002358/0.1463, allocations: 31.95 kB / 0.5593 GB, free: 1.996 MB / 414.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001048/0.1473, allocations: 0.7975 MB / 0.56 GB, free: 1.219 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.1475, allocations: 59.41 kB / 0.5601 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1475, allocations: 0 / 0.5601 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.942e-05/0.1475, allocations: 59.47 kB / 0.5602 GB, free: 1.078 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1476, allocations: 3.938 kB / 0.5602 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003615/0.148, allocations: 122.6 kB / 0.5603 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.1483, allocations: 0.669 MB / 0.5609 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.741e-06/0.1484, allocations: 0 / 0.5609 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.289e-05/0.1484, allocations: 11.38 kB / 0.5609 GB, free: 212 kB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1484, allocations: 3.938 kB / 0.5609 GB, free: 208 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.1724, allocations: 1.633 MB / 0.5625 GB, free: 14.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.289, allocations: 11.62 kB / 0.5625 GB, free: 14.64 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.26123772514984] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.359774342738092 8.38123501 8.234463338 Calling exit ...