Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.001579/0.001579, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001711/0.001711, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.464/1.464, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.2225/0.2225, allocations: 46.88 MB / 357.4 MB, free: 10.53 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.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",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.002375/0.002375, allocations: 80.52 kB / 0.4912 GB, free: 26.94 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1096, allocations: 65.97 MB / 0.5556 GB, free: 9.184 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001642/0.1112, allocations: 493.7 kB / 0.5561 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007701/0.112, allocations: 299.5 kB / 0.5564 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.112, allocations: 0 / 0.5564 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.112, allocations: 0 / 0.5564 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.1121, allocations: 0 / 0.5564 GB, free: 8.402 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009098/0.113, allocations: 99.28 kB / 0.5565 GB, free: 8.309 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.546e-05/0.113, allocations: 8 kB / 0.5565 GB, free: 8.301 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.733e-05/0.1131, allocations: 3.938 kB / 0.5565 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.603e-05/0.1131, allocations: 0 / 0.5565 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.148e-05/0.1131, allocations: 0 / 0.5565 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-06/0.1131, allocations: 4 kB / 0.5565 GB, free: 8.293 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.1133, allocations: 115.8 kB / 0.5566 GB, free: 8.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.655e-06/0.1133, allocations: 0 / 0.5566 GB, free: 8.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.858e-05/0.1133, allocations: 4 kB / 0.5566 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.1135, allocations: 84.03 kB / 0.5567 GB, free: 8.094 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1135, allocations: 0 / 0.5567 GB, free: 8.094 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1135, allocations: 0 / 0.5567 GB, free: 8.094 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1135, allocations: 0 / 0.5567 GB, free: 8.094 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.0003757/0.1139, allocations: 369 kB / 0.557 GB, free: 7.676 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1139, allocations: 8.031 kB / 0.557 GB, free: 7.668 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.114, allocations: 34.75 kB / 0.5571 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.185e-05/0.114, allocations: 4.938 kB / 0.5571 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.1141, allocations: 160.4 kB / 0.5572 GB, free: 7.426 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.1141, allocations: 384 / 0.5572 GB, free: 7.426 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.1141, allocations: 384 / 0.5572 GB, free: 7.426 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.494e-05/0.1142, allocations: 30.27 kB / 0.5573 GB, free: 7.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.1142, allocations: 3.938 kB / 0.5573 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.1142, allocations: 0 / 0.5573 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1142, allocations: 3.938 kB / 0.5573 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.71e-05/0.1142, allocations: 7.984 kB / 0.5573 GB, free: 7.375 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.1144, allocations: 149.7 kB / 0.5574 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.712e-05/0.1144, allocations: 14.58 kB / 0.5574 GB, free: 7.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.1144, allocations: 6.594 kB / 0.5574 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/0.1144, allocations: 4.031 kB / 0.5574 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.1145, allocations: 60.27 kB / 0.5575 GB, free: 7.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 2.835e-06/0.1145, allocations: 3.984 kB / 0.5575 GB, free: 7.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001696/0.1146, allocations: 79.27 kB / 0.5576 GB, free: 6.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.1147, allocations: 77.11 kB / 0.5577 GB, free: 6.883 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.129e-05/0.1148, allocations: 93.81 kB / 0.5577 GB, free: 6.781 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.1148, allocations: 25.7 kB / 0.5578 GB, free: 6.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.1148, allocations: 80.14 kB / 0.5578 GB, free: 6.668 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.1148, allocations: 0 / 0.5578 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.1148, allocations: 13.72 kB / 0.5579 GB, free: 6.648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.115, allocations: 319 kB / 0.5582 GB, free: 6.328 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.917e-06/0.115, allocations: 4 kB / 0.5582 GB, free: 6.324 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-06/0.115, allocations: 4 kB / 0.5582 GB, free: 6.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.615e-05/0.1151, allocations: 60.2 kB / 0.5582 GB, free: 6.246 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1151, allocations: 4 kB / 0.5582 GB, free: 6.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.744e-05/0.1151, allocations: 55.41 kB / 0.5583 GB, free: 6.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.1152, allocations: 41.62 kB / 0.5583 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1152, allocations: 3.938 kB / 0.5583 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1152, allocations: 0 / 0.5583 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-07/0.1152, allocations: 4.094 kB / 0.5583 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1152, allocations: 0 / 0.5583 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.1152, allocations: 4 kB / 0.5583 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.1152, allocations: 4 kB / 0.5583 GB, free: 6.113 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 9.468e-05/0.1153, allocations: 131.5 kB / 0.5585 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-06/0.1153, allocations: 0 / 0.5585 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.688e-06/0.1153, allocations: 7.062 kB / 0.5585 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1154, allocations: 7.984 kB / 0.5585 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1154, allocations: 0 / 0.5585 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.1154, allocations: 4 kB / 0.5585 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.1155, allocations: 145.7 kB / 0.5586 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1155, allocations: 4 kB / 0.5586 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1155, allocations: 0 / 0.5586 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1155, allocations: 0 / 0.5586 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1155, allocations: 7.938 kB / 0.5586 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1155, allocations: 0 / 0.5586 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1155, allocations: 7.922 kB / 0.5586 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.1156, allocations: 94.78 kB / 0.5587 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/0.1156, allocations: 77.11 kB / 0.5588 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.1157, allocations: 7.922 kB / 0.5588 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.1157, allocations: 0 / 0.5588 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.567e-05/0.1157, allocations: 0 / 0.5588 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.1157, allocations: 8 kB / 0.5588 GB, free: 5.516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.412e-05/0.1157, allocations: 75.28 kB / 0.5589 GB, free: 5.441 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1157, allocations: 0 / 0.5589 GB, free: 5.441 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002575/0.116, allocations: 31.88 kB / 0.5589 GB, free: 5.41 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.001007/0.117, allocations: 0.8028 MB / 0.5597 GB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.442e-05/0.1171, allocations: 55.41 kB / 0.5598 GB, free: 4.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.1171, allocations: 0 / 0.5598 GB, free: 4.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.974e-05/0.1171, allocations: 55.41 kB / 0.5598 GB, free: 4.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1172, allocations: 13.53 kB / 0.5598 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.1175, allocations: 122.7 kB / 0.5599 GB, free: 4.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.1178, allocations: 0.6768 MB / 0.5606 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.5e-06/0.1178, allocations: 0 / 0.5606 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.313e-05/0.1179, allocations: 11.38 kB / 0.5606 GB, free: 3.602 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.1179, allocations: 0 / 0.5606 GB, free: 3.602 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.1409, allocations: 1.838 MB / 0.5624 GB, free: 1.844 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.274, allocations: 5.938 kB / 0.5624 GB, free: 1.84 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.043840976431966] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.344703959766775 8.365897208 8.248847486 Calling exit ...