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.005453/0.005453, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001144/0.001144, allocations: 185.5 kB / 16.67 MB, free: 5.938 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.571/1.571, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001268/0.001268, allocations: 46.12 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1052, allocations: 46.62 MB / 373.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002501/0.1077, allocations: 1.19 MB / 374.3 MB, free: 152 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.1111, allocations: 1.998 MB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.618e-05/0.1111, allocations: 0 / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.986e-05/0.1112, allocations: 4 kB / 376.3 MB, free: 14.13 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.001483/0.1127, allocations: 442.6 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.552e-05/0.1127, allocations: 3.938 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.454e-05/0.1127, allocations: 4 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.1128, allocations: 7.938 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.322e-05/0.1128, allocations: 7.922 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.1129, allocations: 7.984 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.1129, allocations: 0 / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007447/0.1137, allocations: 471.5 kB / 377.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.545e-05/0.1137, allocations: 11.98 kB / 377.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.1138, allocations: 3.938 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004998/0.1143, allocations: 347.1 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1143, allocations: 0 / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1143, allocations: 0 / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1143, allocations: 0 / 377.6 MB, free: 12.85 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.0004727/0.1148, allocations: 410.6 kB / 378 MB, free: 12.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1148, allocations: 8.031 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/0.1149, allocations: 80.22 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.1151, allocations: 247.7 kB / 378.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.494e-05/0.1151, allocations: 150.9 kB / 378.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.1152, allocations: 158.7 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.373e-05/0.1153, allocations: 101 kB / 378.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.1153, allocations: 75.28 kB / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.1154, allocations: 150.6 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.186e-05/0.1155, allocations: 162.4 kB / 379.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.433e-05/0.1155, allocations: 154.5 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003074/0.1158, allocations: 453.9 kB / 379.7 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.276e-05/0.1159, allocations: 169.1 kB / 379.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.012e-05/0.116, allocations: 88.08 kB / 380 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-05/0.116, allocations: 79.22 kB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.1162, allocations: 43.41 kB / 380.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.1162, allocations: 0 / 380.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.1163, allocations: 37.66 kB / 380.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1164, allocations: 55.53 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.438e-05/0.1165, allocations: 105.8 kB / 380.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.1165, allocations: 29.64 kB / 380.3 MB, free: 9.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.1166, allocations: 92.12 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.1166, allocations: 0 / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.1166, allocations: 9.719 kB / 380.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1167, allocations: 314.8 kB / 380.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.215e-06/0.1168, allocations: 0 / 380.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.49e-06/0.1168, allocations: 4 kB / 380.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.45e-05/0.1168, allocations: 16.84 kB / 380.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1168, allocations: 0 / 380.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.048e-05/0.1169, allocations: 33.64 kB / 380.8 MB, free: 9.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1169, allocations: 4 kB / 380.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1169, allocations: 0 / 380.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1169, allocations: 7.938 kB / 380.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.129e-05/0.1169, allocations: 0 / 380.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.1169, allocations: 0 / 380.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.117, allocations: 4.094 kB / 380.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.117, allocations: 0 / 380.8 MB, free: 9.438 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 7.958e-05/0.1171, allocations: 117.8 kB / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/0.1171, allocations: 0 / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.066e-05/0.1171, allocations: 3.125 kB / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1171, allocations: 0 / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1171, allocations: 0 / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1171, allocations: 0 / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.1172, allocations: 157.6 kB / 381.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.1173, allocations: 4 kB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.1173, allocations: 3.938 kB / 381.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1173, allocations: 0 / 381.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.1173, allocations: 4 kB / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1173, allocations: 0 / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1173, allocations: 0 / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.444e-05/0.1174, allocations: 65 kB / 381.1 MB, free: 9.016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.1174, allocations: 85.06 kB / 381.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.1174, allocations: 4.031 kB / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.161e-05/0.1175, allocations: 0 / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-06/0.1175, allocations: 0 / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.1175, allocations: 0 / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.31e-05/0.1175, allocations: 87.27 kB / 381.3 MB, free: 8.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1175, allocations: 0 / 381.3 MB, free: 8.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.1179, allocations: 127.6 kB / 381.4 MB, free: 8.699 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.0009055/0.1188, allocations: 477.6 kB / 381.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.563e-05/0.1189, allocations: 8 kB / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1189, allocations: 0 / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.983e-06/0.1189, allocations: 4 kB / 381.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.1191, allocations: 7.844 kB / 381.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.1193, allocations: 114.5 kB / 382 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.1196, allocations: 0.669 MB / 382.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.732e-05/0.1196, allocations: 16.11 kB / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.1197, allocations: 11.44 kB / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of SimCode: time 2.014e-06/0.1197, allocations: 0 / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of Templates: time 0.005935/0.1256, allocations: 2.77 MB / 385.5 MB, free: 4.566 MB / 318.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)