Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.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) 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(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.493/1.493, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.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: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2787, allocations: 46.62 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002255/0.281, allocations: 1.203 MB / 326.5 MB, free: 0.8945 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003056/0.284, allocations: 1.999 MB / 328.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.051e-05/0.2841, allocations: 0 / 328.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.2841, allocations: 0 / 328.5 MB, free: 15.34 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:1211:5-1277:25:writable] Warning: Pure function 'Modelica.Utilities.Strings.Advanced.skipLineComments' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:497:3-636:16:writable] Warning: Pure function 'Modelica.Utilities.Strings.scanToken' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipLineComments'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:965:3-1021:18:writable] Warning: Pure function 'Modelica.Utilities.Strings.syntaxError' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:846:3-933:20:writable] Warning: Pure function 'Modelica.Utilities.Strings.scanDelimiter' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Examples.mo:100:3-167:14:writable] Warning: Pure function 'Modelica.Utilities.Examples.expression.primary' contains a call to impure function 'Modelica.Utilities.Strings.scanToken'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Examples.mo:74:3-98:11:writable] Warning: Pure function 'Modelica.Utilities.Examples.expression.term' contains a call to impure function 'Modelica.Utilities.Examples.expression.primary'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Examples.mo:57:3-277:17:writable] Warning: Pure function 'Modelica.Utilities.Examples.expression' contains a call to impure function 'Modelica.Utilities.Strings.scanDelimiter'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:935:3-963:18:writable] Warning: Pure function 'Modelica.Utilities.Strings.scanNoToken' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipLineComments'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001246/0.2854, allocations: 436 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.081e-05/0.2854, allocations: 1 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 4.806e-05/0.2855, allocations: 9.25 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.591e-05/0.2855, allocations: 1.188 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.116e-05/0.2855, allocations: 2.594 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.2856, allocations: 16.06 kB / 328.9 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.2857, allocations: 5.125 kB / 329 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008152/0.2865, allocations: 430.7 kB / 329.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.2865, allocations: 1.281 kB / 329.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.2865, allocations: 1.875 kB / 329.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006716/0.2872, allocations: 338.5 kB / 329.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.2872, allocations: 0 / 329.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.2873, allocations: 5.188 kB / 329.7 MB, free: 14.63 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.2873, allocations: 0 / 329.7 MB, free: 14.63 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000683/0.288, allocations: 398 kB / 330.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.288, allocations: 14.06 kB / 330.1 MB, free: 14.22 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.762e-05/0.2881, allocations: 85.14 kB / 330.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.2884, allocations: 247.5 kB / 330.4 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.543e-05/0.2885, allocations: 150.9 kB / 330.6 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.2886, allocations: 159.6 kB / 330.7 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.289e-05/0.2886, allocations: 102.3 kB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/0.2887, allocations: 79.28 kB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.759e-05/0.2888, allocations: 150.6 kB / 331.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.913e-05/0.2888, allocations: 155.5 kB / 331.2 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.867e-05/0.2889, allocations: 151.6 kB / 331.4 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.2892, allocations: 444.2 kB / 331.8 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.2893, allocations: 174.1 kB / 332 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.935e-05/0.2894, allocations: 84.08 kB / 332.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.2894, allocations: 75.28 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001952/0.2896, allocations: 47.88 kB / 332.2 MB, free: 12.05 MB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 2.815e-06/0.2896, allocations: 5.031 kB / 332.2 MB, free: 12.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/0.2898, allocations: 38.12 kB / 332.2 MB, free: 12.01 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.2899, allocations: 52.44 kB / 332.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.29, allocations: 100.4 kB / 332.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.29, allocations: 25.7 kB / 332.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.88e-05/0.29, allocations: 81.48 kB / 332.5 MB, free: 11.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.2901, allocations: 0 / 332.5 MB, free: 11.73 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.2901, allocations: 19.33 kB / 332.5 MB, free: 11.71 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2902, allocations: 316.2 kB / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.2903, allocations: 1.031 kB / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.81e-06/0.2903, allocations: 1.156 kB / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.596e-05/0.2903, allocations: 11.05 kB / 332.8 MB, free: 11.38 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2903, allocations: 0 / 332.8 MB, free: 11.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.44e-05/0.2904, allocations: 43.11 kB / 332.8 MB, free: 11.34 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2904, allocations: 9.375 kB / 332.9 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2904, allocations: 3.984 kB / 332.9 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.2904, allocations: 5.188 kB / 332.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.442e-05/0.2905, allocations: 0 / 332.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.2905, allocations: 0 / 332.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.2905, allocations: 1.219 kB / 332.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.2905, allocations: 4 kB / 332.9 MB, free: 11.32 MB / 270.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 8.612e-05/0.2906, allocations: 112 kB / 333 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.193e-05/0.2906, allocations: 5.141 kB / 333 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.2907, allocations: 4.219 kB / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2907, allocations: 5.094 kB / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2907, allocations: 4 kB / 333 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2907, allocations: 3.984 kB / 333 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.2908, allocations: 152.8 kB / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2908, allocations: 0 / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-05/0.2908, allocations: 5.062 kB / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2908, allocations: 3.984 kB / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.2909, allocations: 0 / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2909, allocations: 1.094 kB / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2909, allocations: 0 / 333.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.973e-05/0.291, allocations: 63.95 kB / 333.2 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.291, allocations: 77.11 kB / 333.3 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.291, allocations: 4.953 kB / 333.3 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.356e-05/0.291, allocations: 1.156 kB / 333.3 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.472e-05/0.2911, allocations: 0 / 333.3 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.2911, allocations: 1.031 kB / 333.3 MB, free: 10.8 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.303e-05/0.2911, allocations: 79.66 kB / 333.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2911, allocations: 0 / 333.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.2916, allocations: 130.5 kB / 333.5 MB, free: 10.69 MB / 270.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0009879/0.2926, allocations: 473.6 kB / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 7.083e-05/0.2927, allocations: 7.219 kB / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2927, allocations: 0 / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 5.521e-06/0.2927, allocations: 2.188 kB / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.2928, allocations: 14.02 kB / 334 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002598/0.2931, allocations: 110.9 kB / 334.1 MB, free: 10.26 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.2933, allocations: 0.6798 MB / 334.8 MB, free: 9.559 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 3.116e-05/0.2934, allocations: 12.42 kB / 334.8 MB, free: 9.551 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.371e-05/0.2934, allocations: 11.47 kB / 334.8 MB, free: 9.543 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2934, allocations: 0 / 334.8 MB, free: 9.543 MB / 270.1 MB Notification: Performance of Templates: time 0.006112/0.2995, allocations: 2.77 MB / 337.6 MB, free: 7.242 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1)