Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.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.001162/0.001162, allocations: 106.5 kB / 19.74 MB, free: 2.453 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.001256/0.001256, allocations: 216.4 kB / 22.92 MB, free: 5.195 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.289/1.289, allocations: 230.2 MB / 256.2 MB, free: 8.582 MB / 206.1 MB " [Timeout remaining time 179] 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.2012/0.2012, allocations: 46.89 MB / 359.3 MB, free: 4.945 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.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",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.00202/0.00202, allocations: 87.84 kB / 0.494 GB, free: 9.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2675, allocations: 65.99 MB / 0.5584 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00132/0.2688, allocations: 465.2 kB / 0.5588 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2699, allocations: 0.8546 MB / 0.5597 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.253e-05/0.2699, allocations: 0 / 0.5597 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.632e-06/0.2699, allocations: 8 kB / 0.5597 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.764e-05/0.27, allocations: 4 kB / 0.5597 GB, free: 3.871 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.2705, allocations: 57.11 kB / 0.5597 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.249e-05/0.2705, allocations: 0 / 0.5597 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.079e-05/0.2705, allocations: 7.984 kB / 0.5597 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.397e-06/0.2705, allocations: 0 / 0.5597 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.775e-05/0.2706, allocations: 7.938 kB / 0.5598 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.654e-06/0.2706, allocations: 3.984 kB / 0.5598 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.2707, allocations: 51.97 kB / 0.5598 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.2707, allocations: 3.984 kB / 0.5598 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.829e-05/0.2708, allocations: 7.938 kB / 0.5598 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.703e-05/0.2709, allocations: 51.72 kB / 0.5599 GB, free: 3.691 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.2709, allocations: 0 / 0.5599 GB, free: 3.691 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.2709, allocations: 0 / 0.5599 GB, free: 3.691 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2709, allocations: 0 / 0.5599 GB, free: 3.691 MB / 398.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.0002942/0.2712, allocations: 359.1 kB / 0.5602 GB, free: 3.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.76e-05/0.2712, allocations: 12.03 kB / 0.5602 GB, free: 3.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.27e-05/0.2712, allocations: 30.75 kB / 0.5603 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.51e-05/0.2712, allocations: 0.9375 kB / 0.5603 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.906e-05/0.2713, allocations: 160.4 kB / 0.5604 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.2713, allocations: 12.38 kB / 0.5604 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.94e-06/0.2713, allocations: 384 / 0.5604 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.116e-05/0.2714, allocations: 30.2 kB / 0.5604 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.2714, allocations: 7.875 kB / 0.5605 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-06/0.2714, allocations: 4 kB / 0.5605 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.2714, allocations: 3.984 kB / 0.5605 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.244e-05/0.2714, allocations: 4 kB / 0.5605 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.2716, allocations: 141.7 kB / 0.5606 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.348e-05/0.2716, allocations: 22.61 kB / 0.5606 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.146e-05/0.2716, allocations: 4.859 kB / 0.5606 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.851e-06/0.2716, allocations: 3.938 kB / 0.5606 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.2717, allocations: 68.31 kB / 0.5607 GB, free: 2.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.2717, allocations: 0 / 0.5607 GB, free: 2.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001192/0.2718, allocations: 63.34 kB / 0.5608 GB, free: 2.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.2718, allocations: 77.11 kB / 0.5608 GB, free: 2.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.009e-05/0.2719, allocations: 97.97 kB / 0.5609 GB, free: 2.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.2719, allocations: 29.64 kB / 0.561 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.333e-05/0.2719, allocations: 88.14 kB / 0.561 GB, free: 2.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.233e-06/0.2719, allocations: 0 / 0.561 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.272, allocations: 9.719 kB / 0.561 GB, free: 2.246 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2721, allocations: 310.8 kB / 0.5613 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.452e-06/0.2721, allocations: 4 kB / 0.5613 GB, free: 1.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.012e-06/0.2721, allocations: 8.062 kB / 0.5614 GB, free: 1.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.11e-05/0.2721, allocations: 60.27 kB / 0.5614 GB, free: 1.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.2721, allocations: 0 / 0.5614 GB, free: 1.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.09e-05/0.2722, allocations: 67.39 kB / 0.5615 GB, free: 1.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.2722, allocations: 33.64 kB / 0.5615 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-06/0.2722, allocations: 0 / 0.5615 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.095e-06/0.2722, allocations: 0 / 0.5615 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-07/0.2722, allocations: 4 kB / 0.5615 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.2722, allocations: 0 / 0.5615 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.2723, allocations: 4.094 kB / 0.5615 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-06/0.2723, allocations: 0 / 0.5615 GB, free: 1.723 MB / 398.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 7.411e-05/0.2723, allocations: 139.5 kB / 0.5616 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.2724, allocations: 7.875 kB / 0.5617 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-06/0.2724, allocations: 3.125 kB / 0.5617 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.91e-07/0.2724, allocations: 0 / 0.5617 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.2724, allocations: 0 / 0.5617 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-06/0.2724, allocations: 0 / 0.5617 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.728e-05/0.2725, allocations: 157.6 kB / 0.5618 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.2725, allocations: 0 / 0.5618 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2725, allocations: 4 kB / 0.5618 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2725, allocations: 3.938 kB / 0.5618 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-06/0.2725, allocations: 0 / 0.5618 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.2725, allocations: 0 / 0.5618 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2725, allocations: 4 kB / 0.5618 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.099e-05/0.2726, allocations: 90.81 kB / 0.5619 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.939e-05/0.2726, allocations: 85.06 kB / 0.562 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.2726, allocations: 11.97 kB / 0.562 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.2726, allocations: 0 / 0.562 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.2726, allocations: 3.984 kB / 0.562 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.2726, allocations: 0 / 0.562 GB, free: 1.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.45e-05/0.2727, allocations: 79.28 kB / 0.5621 GB, free: 1.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2727, allocations: 3.938 kB / 0.5621 GB, free: 1.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001886/0.2729, allocations: 19.92 kB / 0.5621 GB, free: 1.016 MB / 398.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.0006121/0.2735, allocations: 0.7169 MB / 0.5628 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.958e-05/0.2735, allocations: 55.41 kB / 0.5629 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2735, allocations: 0 / 0.5629 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.2736, allocations: 63.33 kB / 0.5629 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001099/0.2737, allocations: 8 kB / 0.5629 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.2739, allocations: 106.7 kB / 0.563 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.2742, allocations: 0.6769 MB / 0.5637 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.762e-06/0.2742, allocations: 7.938 kB / 0.5637 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.711e-05/0.2743, allocations: 11.42 kB / 0.5637 GB, free: 15.27 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2743, allocations: 0 / 0.5637 GB, free: 15.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.2964, allocations: 1.476 MB / 0.5651 GB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.898/7.194, allocations: 5.547 kB / 0.5652 GB, free: 13.86 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.662653544000932]