Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001538/0.001539, 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.001718/0.001718, allocations: 195.2 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.562/1.562, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001302/0.001302, allocations: 59.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3225, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00274/0.3253, allocations: 1.196 MB / 326.5 MB, free: 0.9062 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.3285, allocations: 1.99 MB / 328.5 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.3285, allocations: 0 / 328.5 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.349e-05/0.3286, allocations: 4 kB / 328.5 MB, free: 15.36 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.001541/0.3301, allocations: 440 kB / 328.9 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.354e-05/0.3301, allocations: 1.156 kB / 328.9 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.576e-05/0.3302, allocations: 13.77 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.3303, allocations: 1.219 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.836e-05/0.3303, allocations: 6.188 kB / 328.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3304, allocations: 12.33 kB / 328.9 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.3304, allocations: 1.25 kB / 329 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007005/0.3312, allocations: 427 kB / 329.4 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.3312, allocations: 7.938 kB / 329.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.331e-05/0.3312, allocations: 10.95 kB / 329.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006108/0.3318, allocations: 337.4 kB / 329.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3319, allocations: 0.9688 kB / 329.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3319, allocations: 0 / 329.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.3319, allocations: 0 / 329.7 MB, free: 14.64 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.00054/0.3324, allocations: 403 kB / 330.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3325, allocations: 9.938 kB / 330.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/0.3325, allocations: 81.25 kB / 330.2 MB, free: 14.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.3328, allocations: 243.2 kB / 330.4 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.3328, allocations: 155.9 kB / 330.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.151e-05/0.3329, allocations: 154.7 kB / 330.7 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.794e-05/0.333, allocations: 102.1 kB / 330.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.333, allocations: 79.27 kB / 330.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.098e-05/0.3331, allocations: 151.7 kB / 331.1 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.3331, allocations: 158.6 kB / 331.2 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.475e-05/0.3332, allocations: 151.7 kB / 331.4 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002829/0.3335, allocations: 440.1 kB / 331.8 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.247e-05/0.3336, allocations: 174 kB / 332 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.456e-05/0.3336, allocations: 92.06 kB / 332.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.3337, allocations: 76.41 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.3338, allocations: 38.89 kB / 332.2 MB, free: 12.06 MB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 2.745e-06/0.3338, allocations: 1.125 kB / 332.2 MB, free: 12.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.000154/0.334, allocations: 42 kB / 332.2 MB, free: 12.02 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.3341, allocations: 56.69 kB / 332.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.58e-05/0.3342, allocations: 96.42 kB / 332.4 MB, free: 11.86 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.3342, allocations: 25.7 kB / 332.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.3342, allocations: 89.03 kB / 332.5 MB, free: 11.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.352e-05/0.3342, allocations: 0 / 332.5 MB, free: 11.73 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.3343, allocations: 12.12 kB / 332.5 MB, free: 11.72 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3344, allocations: 311.9 kB / 332.8 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.3344, allocations: 0 / 332.8 MB, free: 11.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-06/0.3344, allocations: 5.156 kB / 332.8 MB, free: 11.4 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.015e-05/0.3345, allocations: 16.23 kB / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3345, allocations: 0 / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.703e-05/0.3345, allocations: 42.94 kB / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3345, allocations: 8.719 kB / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3346, allocations: 1.312 kB / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3346, allocations: 0 / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.015e-05/0.3346, allocations: 0 / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3346, allocations: 1 kB / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.873e-05/0.3346, allocations: 8.078 kB / 332.9 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.3347, allocations: 9 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 7.134e-05/0.3347, allocations: 111 kB / 333 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.3347, allocations: 2.25 kB / 333 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.3348, allocations: 12.39 kB / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3348, allocations: 0 / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3348, allocations: 0 / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3348, allocations: 1.156 kB / 333 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.3349, allocations: 147.8 kB / 333.1 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3349, allocations: 4 kB / 333.2 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.113e-06/0.335, allocations: 8.922 kB / 333.2 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.335, allocations: 0 / 333.2 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.335, allocations: 1.594 kB / 333.2 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.335, allocations: 0 / 333.2 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.335, allocations: 0 / 333.2 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.862e-05/0.3351, allocations: 59.23 kB / 333.2 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.3351, allocations: 82.59 kB / 333.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.3351, allocations: 4.031 kB / 333.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.29e-05/0.3351, allocations: 1.375 kB / 333.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.015e-05/0.3352, allocations: 0 / 333.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.3352, allocations: 1.125 kB / 333.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.218e-05/0.3352, allocations: 83.19 kB / 333.4 MB, free: 10.74 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3352, allocations: 0 / 333.4 MB, free: 10.74 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004717/0.3357, allocations: 127.5 kB / 333.5 MB, free: 10.7 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.0009469/0.3367, allocations: 476.6 kB / 334 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 7.288e-05/0.3367, allocations: 6.312 kB / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3368, allocations: 1.188 kB / 334 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 6.532e-06/0.3368, allocations: 5.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.0001415/0.3369, allocations: 10.48 kB / 334 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.3372, allocations: 102.8 kB / 334.1 MB, free: 10.28 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.3374, allocations: 0.6829 MB / 334.8 MB, free: 9.57 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 2.835e-05/0.3374, allocations: 12.55 kB / 334.8 MB, free: 9.562 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.902e-05/0.3375, allocations: 11.81 kB / 334.8 MB, free: 9.555 MB / 270.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3375, allocations: 0 / 334.8 MB, free: 9.555 MB / 270.1 MB Notification: Performance of Templates: time 0.006643/0.3441, allocations: 2.769 MB / 337.6 MB, free: 7.25 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1)