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.005044/0.005044, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001171/0.001171, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.574/1.574, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.001378/0.001379, allocations: 49.55 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1123, allocations: 46.62 MB / 373.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00266/0.115, allocations: 1.19 MB / 374.3 MB, free: 144 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003408/0.1185, allocations: 1.994 MB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.927e-05/0.1185, allocations: 0 / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/0.1186, allocations: 7.984 kB / 376.3 MB, free: 14.12 MB / 318.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.001636/0.1202, allocations: 434.6 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.73e-05/0.1203, allocations: 0 / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.437e-05/0.1203, allocations: 19.86 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.629e-05/0.1204, allocations: 0 / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.073e-05/0.1204, allocations: 11.92 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.1205, allocations: 8 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.1206, allocations: 0 / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008681/0.1214, allocations: 475.5 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.1215, allocations: 7.984 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.731e-05/0.1215, allocations: 3.938 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006752/0.1222, allocations: 343.1 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1222, allocations: 0 / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1222, allocations: 0 / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1222, allocations: 4 kB / 377.6 MB, free: 12.84 MB / 318.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.0005067/0.1227, allocations: 410.6 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1228, allocations: 12.03 kB / 378 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.939e-05/0.1229, allocations: 76.22 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1231, allocations: 247.7 kB / 378.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.1231, allocations: 150.9 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.1232, allocations: 154.7 kB / 378.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.812e-05/0.1232, allocations: 112.9 kB / 378.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.1233, allocations: 75.28 kB / 378.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.1233, allocations: 150.6 kB / 379 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.007e-05/0.1234, allocations: 154.6 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.551e-05/0.1235, allocations: 154.6 kB / 379.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002936/0.1238, allocations: 445.9 kB / 379.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.16e-05/0.1239, allocations: 173.1 kB / 379.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.403e-05/0.1239, allocations: 92.08 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.1239, allocations: 75.28 kB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.1241, allocations: 39.42 kB / 380.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.485e-06/0.1241, allocations: 0 / 380.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001627/0.1243, allocations: 45.58 kB / 380.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.1243, allocations: 55.53 kB / 380.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.1244, allocations: 105.8 kB / 380.3 MB, free: 9.965 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.1245, allocations: 25.7 kB / 380.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.445e-05/0.1245, allocations: 84.12 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.1245, allocations: 0 / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.1246, allocations: 13.72 kB / 380.4 MB, free: 9.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.1247, allocations: 314.8 kB / 380.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.347e-06/0.1247, allocations: 0 / 380.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.1247, allocations: 4 kB / 380.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.665e-05/0.1247, allocations: 8.859 kB / 380.7 MB, free: 9.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1247, allocations: 0 / 380.7 MB, free: 9.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.056e-05/0.1248, allocations: 41.56 kB / 380.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1248, allocations: 11.94 kB / 380.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1248, allocations: 3.984 kB / 380.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1248, allocations: 0 / 380.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.276e-05/0.1249, allocations: 0 / 380.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.1249, allocations: 0 / 380.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.1249, allocations: 4.094 kB / 380.8 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1249, allocations: 0 / 380.8 MB, free: 9.43 MB / 318.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.713e-05/0.125, allocations: 117.8 kB / 380.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.125, allocations: 0 / 380.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.1251, allocations: 11.11 kB / 380.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1251, allocations: 0 / 380.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1251, allocations: 0 / 380.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1251, allocations: 0 / 380.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.1252, allocations: 145.6 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1252, allocations: 7.984 kB / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-06/0.1252, allocations: 4 kB / 381.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1253, allocations: 0 / 381.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.1253, allocations: 7.938 kB / 381.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1253, allocations: 4 kB / 381.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1253, allocations: 0 / 381.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.576e-05/0.1254, allocations: 61.02 kB / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.1254, allocations: 85.05 kB / 381.2 MB, free: 8.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.1254, allocations: 4.031 kB / 381.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.229e-05/0.1255, allocations: 0 / 381.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.422e-05/0.1255, allocations: 0 / 381.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.1255, allocations: 4 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.116e-05/0.1255, allocations: 83.28 kB / 381.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1255, allocations: 0 / 381.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.126, allocations: 127.6 kB / 381.4 MB, free: 8.688 MB / 318.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.0009416/0.1269, allocations: 469.7 kB / 381.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.354e-05/0.127, allocations: 4 kB / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.127, allocations: 0 / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.708e-06/0.127, allocations: 7.922 kB / 381.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.1272, allocations: 11.84 kB / 381.9 MB, free: 8.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002496/0.1274, allocations: 102.6 kB / 382 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.1277, allocations: 0.6768 MB / 382.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.044e-05/0.1277, allocations: 12.11 kB / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.648e-05/0.1277, allocations: 11.44 kB / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1277, allocations: 0 / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of Templates: time 0.006488/0.1342, allocations: 2.77 MB / 385.5 MB, free: 4.566 MB / 318.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)