Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.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.001324/0.001324, allocations: 122.7 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.001507/0.001507, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.465/1.465, 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.2282/0.2282, allocations: 46.88 MB / 357.4 MB, free: 10.54 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.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",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.002274/0.002274, allocations: 81.14 kB / 0.4912 GB, free: 27.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1179, allocations: 65.97 MB / 0.5556 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001589/0.1195, allocations: 497 kB / 0.5561 GB, free: 8.812 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1217, allocations: 1.274 MB / 0.5573 GB, free: 7.535 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.238e-05/0.1217, allocations: 0 / 0.5573 GB, free: 7.535 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/0.1217, allocations: 3.938 kB / 0.5573 GB, free: 7.531 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.1219, allocations: 8 kB / 0.5574 GB, free: 7.523 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.1229, allocations: 248.7 kB / 0.5576 GB, free: 7.285 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.123, allocations: 8 kB / 0.5576 GB, free: 7.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.102e-05/0.123, allocations: 0 / 0.5576 GB, free: 7.277 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.677e-05/0.123, allocations: 11.94 kB / 0.5576 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.714e-05/0.1231, allocations: 11.92 kB / 0.5576 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.1231, allocations: 0 / 0.5576 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004176/0.1273, allocations: 0.687 MB / 0.5583 GB, free: 6.688 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.1273, allocations: 3.938 kB / 0.5583 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.1273, allocations: 4 kB / 0.5583 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.1277, allocations: 179.5 kB / 0.5585 GB, free: 6.504 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1277, allocations: 7.922 kB / 0.5585 GB, free: 6.496 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1277, allocations: 0 / 0.5585 GB, free: 6.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1277, allocations: 0 / 0.5585 GB, free: 6.496 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.0005692/0.1282, allocations: 380.9 kB / 0.5588 GB, free: 6.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1283, allocations: 12.03 kB / 0.5589 GB, free: 6.055 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.1283, allocations: 30.75 kB / 0.5589 GB, free: 6.016 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.1284, allocations: 4.938 kB / 0.5589 GB, free: 6.012 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1285, allocations: 164.4 kB / 0.559 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.1285, allocations: 4.375 kB / 0.559 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.1285, allocations: 4.375 kB / 0.5591 GB, free: 5.805 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.595e-05/0.1286, allocations: 30.27 kB / 0.5591 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1286, allocations: 3.938 kB / 0.5591 GB, free: 5.766 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.1286, allocations: 3.938 kB / 0.5591 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1286, allocations: 0 / 0.5591 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.829e-05/0.1287, allocations: 7.938 kB / 0.5591 GB, free: 5.754 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.1288, allocations: 149.7 kB / 0.5592 GB, free: 5.559 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.815e-05/0.1289, allocations: 18.61 kB / 0.5593 GB, free: 5.531 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.712e-05/0.1289, allocations: 8.859 kB / 0.5593 GB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.1289, allocations: 0 / 0.5593 GB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.998e-05/0.129, allocations: 60.33 kB / 0.5593 GB, free: 5.445 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.129, allocations: 0 / 0.5593 GB, free: 5.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002013/0.1292, allocations: 75.27 kB / 0.5594 GB, free: 5.359 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1292, allocations: 77.11 kB / 0.5595 GB, free: 5.266 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.919e-05/0.1293, allocations: 97.86 kB / 0.5596 GB, free: 5.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.1293, allocations: 25.7 kB / 0.5596 GB, free: 5.129 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.171e-05/0.1294, allocations: 84.12 kB / 0.5597 GB, free: 5.043 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.1294, allocations: 0 / 0.5597 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.1294, allocations: 13.72 kB / 0.5597 GB, free: 5.023 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1296, allocations: 311.1 kB / 0.56 GB, free: 4.711 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.351e-05/0.1296, allocations: 8 kB / 0.56 GB, free: 4.703 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.435e-06/0.1296, allocations: 4 kB / 0.56 GB, free: 4.699 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.589e-05/0.1297, allocations: 60.27 kB / 0.56 GB, free: 4.625 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1297, allocations: 0 / 0.56 GB, free: 4.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.273e-05/0.1297, allocations: 71.28 kB / 0.5601 GB, free: 4.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.1298, allocations: 33.64 kB / 0.5601 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1298, allocations: 3.984 kB / 0.5601 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1298, allocations: 0 / 0.5601 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1298, allocations: 8.031 kB / 0.5602 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1298, allocations: 4 kB / 0.5602 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.958e-05/0.1298, allocations: 0 / 0.5602 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1298, allocations: 0 / 0.5602 GB, free: 4.488 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.0001293/0.13, allocations: 147.5 kB / 0.5603 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.13, allocations: 3.938 kB / 0.5603 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.011e-05/0.13, allocations: 7.109 kB / 0.5603 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.13, allocations: 0 / 0.5603 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.13, allocations: 0 / 0.5603 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.13, allocations: 4 kB / 0.5603 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.1301, allocations: 149.7 kB / 0.5605 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1301, allocations: 3.938 kB / 0.5605 GB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1301, allocations: 0 / 0.5605 GB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1301, allocations: 3.938 kB / 0.5605 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.1301, allocations: 0 / 0.5605 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1301, allocations: 4 kB / 0.5605 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1301, allocations: 0 / 0.5605 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.1302, allocations: 102.8 kB / 0.5606 GB, free: 3.984 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.804e-05/0.1303, allocations: 77.11 kB / 0.5606 GB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.1303, allocations: 7.938 kB / 0.5606 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.1303, allocations: 0 / 0.5606 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.489e-05/0.1303, allocations: 8 kB / 0.5607 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.1303, allocations: 0 / 0.5607 GB, free: 3.875 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.947e-05/0.1304, allocations: 75.28 kB / 0.5607 GB, free: 3.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1304, allocations: 0 / 0.5607 GB, free: 3.801 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.1307, allocations: 59.86 kB / 0.5608 GB, free: 3.742 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.001185/0.1319, allocations: 0.8695 MB / 0.5616 GB, free: 2.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.132, allocations: 63.39 kB / 0.5617 GB, free: 2.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.132, allocations: 4.062 kB / 0.5617 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.796e-05/0.132, allocations: 59.34 kB / 0.5618 GB, free: 2.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.1322, allocations: 6.344 kB / 0.5618 GB, free: 2.746 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/0.1325, allocations: 130.6 kB / 0.5619 GB, free: 2.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.1328, allocations: 0.6729 MB / 0.5625 GB, free: 1.879 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.077e-06/0.1328, allocations: 0 / 0.5625 GB, free: 1.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.1329, allocations: 11.44 kB / 0.5626 GB, free: 1.867 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1329, allocations: 0 / 0.5626 GB, free: 1.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.1596, allocations: 2.546 MB / 0.565 GB, free: 15.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.29, allocations: 6.891 kB / 0.565 GB, free: 15.39 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.164958973880857] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.363039233721793 8.380225434 8.247733868 Calling exit ...