Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01357/0.01357, allocations: 103.3 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002741/0.002741, allocations: 189.1 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.394/0.394, allocations: 39.94 MB / 309.8 MB, free: 9.371 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 67.91 kB / 435.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3544, allocations: 56.88 MB / 492.6 MB, free: 19.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002297/0.3567, allocations: 491.8 kB / 493.1 MB, free: 19.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.358, allocations: 0.7818 MB / 493.9 MB, free: 18.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.965e-05/0.358, allocations: 0 / 493.9 MB, free: 18.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.358, allocations: 4 kB / 493.9 MB, free: 18.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.3583, allocations: 8.922 kB / 493.9 MB, free: 18.6 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.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.0006388/0.3589, allocations: 63.03 kB / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.831e-05/0.359, allocations: 2.875 kB / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.27e-05/0.359, allocations: 2.75 kB / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.339e-05/0.3591, allocations: 1.281 kB / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.068e-05/0.3592, allocations: 6.969 kB / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.3592, allocations: 0 / 494 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.3593, allocations: 55.16 kB / 494 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.3593, allocations: 3.984 kB / 494 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.699e-05/0.3594, allocations: 5.094 kB / 494 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.3595, allocations: 47.55 kB / 494.1 MB, free: 18.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3596, allocations: 5.125 kB / 494.1 MB, free: 18.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3596, allocations: 0 / 494.1 MB, free: 18.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3596, allocations: 0 / 494.1 MB, free: 18.53 MB / 382.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.0003945/0.36, allocations: 361 kB / 494.4 MB, free: 18.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.36, allocations: 13.61 kB / 494.5 MB, free: 18.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.3601, allocations: 0.9375 kB / 494.5 MB, free: 18.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.851e-05/0.3602, allocations: 167.3 kB / 494.6 MB, free: 17.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3602, allocations: 4.375 kB / 494.6 MB, free: 17.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.3602, allocations: 1.688 kB / 494.6 MB, free: 17.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.234e-05/0.3603, allocations: 29.98 kB / 494.7 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3603, allocations: 192 / 494.7 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.3603, allocations: 6.125 kB / 494.7 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.3604, allocations: 0 / 494.7 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.621e-05/0.3604, allocations: 1.344 kB / 494.7 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.3605, allocations: 148.8 kB / 494.8 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.37e-05/0.3606, allocations: 25.88 kB / 494.8 MB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.3606, allocations: 6.781 kB / 494.8 MB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.3606, allocations: 0 / 494.8 MB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.3606, allocations: 58.06 kB / 494.9 MB, free: 17.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3606, allocations: 0 / 494.9 MB, free: 17.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002049/0.3609, allocations: 70.95 kB / 495 MB, free: 17.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.3609, allocations: 77.62 kB / 495 MB, free: 17.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.277e-05/0.361, allocations: 96.75 kB / 495.1 MB, free: 17.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.361, allocations: 26.98 kB / 495.2 MB, free: 17.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.776e-05/0.361, allocations: 80.14 kB / 495.2 MB, free: 17.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.361, allocations: 7.109 kB / 495.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.3611, allocations: 11.72 kB / 495.3 MB, free: 17.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.061e-05/0.3612, allocations: 317 kB / 495.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.161e-05/0.3612, allocations: 1.094 kB / 495.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.295e-06/0.3612, allocations: 5.766 kB / 495.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.41e-05/0.3612, allocations: 64.31 kB / 495.6 MB, free: 16.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3612, allocations: 1.094 kB / 495.6 MB, free: 16.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.094e-05/0.3613, allocations: 64.81 kB / 495.7 MB, free: 16.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.3613, allocations: 32.02 kB / 495.7 MB, free: 16.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3614, allocations: 4.641 kB / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3614, allocations: 0 / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.3614, allocations: 1.062 kB / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.3614, allocations: 3.938 kB / 495.8 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.3614, allocations: 5.688 kB / 495.8 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3614, allocations: 5.156 kB / 495.8 MB, free: 16.68 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: 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 6.139e-05/0.3615, allocations: 142.8 kB / 495.9 MB, free: 16.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/0.3615, allocations: 1 kB / 495.9 MB, free: 16.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.238e-05/0.3615, allocations: 11.7 kB / 495.9 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3615, allocations: 1.094 kB / 495.9 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3615, allocations: 0.6562 kB / 495.9 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3616, allocations: 0 / 495.9 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.377e-05/0.3616, allocations: 146.4 kB / 496.1 MB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3616, allocations: 0 / 496.1 MB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3616, allocations: 5.031 kB / 496.1 MB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.3616, allocations: 0 / 496.1 MB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3617, allocations: 5.734 kB / 496.1 MB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3617, allocations: 0 / 496.1 MB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3617, allocations: 1.125 kB / 496.1 MB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.3e-05/0.3618, allocations: 89.98 kB / 496.2 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.048e-05/0.3618, allocations: 81.53 kB / 496.2 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.3618, allocations: 9.688 kB / 496.2 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3618, allocations: 1.156 kB / 496.2 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.022e-05/0.3619, allocations: 13.64 kB / 496.3 MB, free: 16.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3619, allocations: 0 / 496.3 MB, free: 16.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.888e-05/0.3619, allocations: 77.55 kB / 496.3 MB, free: 16.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3619, allocations: 0 / 496.3 MB, free: 16.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00026/0.3622, allocations: 19.06 kB / 496.4 MB, free: 16.03 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: 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.0003339/0.3625, allocations: 183.9 kB / 496.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.214e-05/0.3626, allocations: 62.73 kB / 496.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3626, allocations: 0 / 496.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.96e-05/0.3626, allocations: 56.69 kB / 496.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.3628, allocations: 9.125 kB / 496.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001741/0.363, allocations: 88.14 kB / 496.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.3631, allocations: 0.6718 MB / 497.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.3631, allocations: 3.938 kB / 497.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.069e-05/0.3631, allocations: 8.469 kB / 497.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3631, allocations: 0 / 497.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of Templates: time 0.002954/0.3661, allocations: 0.6527 MB / 498.1 MB, free: 14.83 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)