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.004714/0.004714, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001339/0.001339, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.534/1.534, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001222/0.001222, allocations: 54.56 kB / 326.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09222, allocations: 46.62 MB / 373.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002029/0.09429, allocations: 1.182 MB / 374.3 MB, free: 284 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.09707, allocations: 1.994 MB / 376.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.105e-05/0.09711, allocations: 4 kB / 376.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.09716, allocations: 3.938 kB / 376.3 MB, free: 14.26 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.001089/0.09825, allocations: 442.6 kB / 376.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.103e-05/0.09828, allocations: 4 kB / 376.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.366e-05/0.09833, allocations: 15.92 kB / 376.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.09838, allocations: 4 kB / 376.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.867e-05/0.0984, allocations: 3.938 kB / 376.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.09849, allocations: 9.078 kB / 376.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.776e-06/0.09851, allocations: 4 kB / 376.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005905/0.0991, allocations: 475.5 kB / 377.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.09913, allocations: 7.938 kB / 377.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.874e-05/0.09915, allocations: 3.938 kB / 377.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004213/0.09958, allocations: 335.5 kB / 377.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.09959, allocations: 0 / 377.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.0996, allocations: 0 / 377.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09961, allocations: 0 / 377.6 MB, free: 12.98 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.0004163/0.1, allocations: 407.4 kB / 378 MB, free: 12.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1001, allocations: 8.031 kB / 378 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/0.1002, allocations: 80.22 kB / 378.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.1003, allocations: 243.6 kB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.857e-05/0.1004, allocations: 166.9 kB / 378.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.1005, allocations: 158.7 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.774e-05/0.1005, allocations: 104.9 kB / 378.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1006, allocations: 75.28 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.1006, allocations: 154.6 kB / 379 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-05/0.1007, allocations: 150.6 kB / 379.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.495e-05/0.1007, allocations: 150.6 kB / 379.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000304/0.101, allocations: 453.9 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.209e-05/0.1011, allocations: 173.1 kB / 379.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.429e-05/0.1012, allocations: 84.08 kB / 380 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.1012, allocations: 75.28 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.1013, allocations: 43.42 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.094e-06/0.1013, allocations: 0 / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.1015, allocations: 41.62 kB / 380.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.1015, allocations: 55.53 kB / 380.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.208e-05/0.1016, allocations: 101.8 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.1016, allocations: 29.7 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.1016, allocations: 80.14 kB / 380.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.829e-06/0.1017, allocations: 0 / 380.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.1017, allocations: 13.72 kB / 380.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.705e-05/0.1018, allocations: 314.8 kB / 380.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.1018, allocations: 0 / 380.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.1018, allocations: 4 kB / 380.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.136e-05/0.1018, allocations: 12.8 kB / 380.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1018, allocations: 0 / 380.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.306e-05/0.1019, allocations: 41.56 kB / 380.8 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1019, allocations: 4 kB / 380.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1019, allocations: 4 kB / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.102, allocations: 0 / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.88e-05/0.102, allocations: 4 kB / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.102, allocations: 4.094 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.638e-05/0.102, allocations: 0 / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-06/0.102, allocations: 0 / 380.8 MB, free: 9.574 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 6.508e-05/0.1021, allocations: 113.8 kB / 380.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.1021, allocations: 3.906 kB / 380.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.028e-05/0.1021, allocations: 7.109 kB / 380.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1021, allocations: 0 / 380.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.1021, allocations: 0 / 380.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1021, allocations: 4 kB / 380.9 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.1023, allocations: 153.6 kB / 381 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1023, allocations: 4 kB / 381 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-06/0.1023, allocations: 0 / 381 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1023, allocations: 0 / 381 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.1023, allocations: 7.938 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1023, allocations: 0 / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1023, allocations: 3.938 kB / 381.1 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.012e-05/0.1024, allocations: 53.08 kB / 381.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.1024, allocations: 93.12 kB / 381.2 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.1024, allocations: 4 kB / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.199e-05/0.1025, allocations: 0 / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.1025, allocations: 192 / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.1025, allocations: 0 / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.74e-05/0.1025, allocations: 83.27 kB / 381.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1025, allocations: 0 / 381.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.1029, allocations: 132 kB / 381.4 MB, free: 8.832 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.0009358/0.1038, allocations: 473.7 kB / 381.9 MB, free: 8.355 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.266e-05/0.1039, allocations: 11.92 kB / 381.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1039, allocations: 0 / 381.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.246e-06/0.1039, allocations: 4 kB / 381.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.1041, allocations: 7.938 kB / 381.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/0.1044, allocations: 106.5 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.1046, allocations: 0.6769 MB / 382.7 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.911e-05/0.1046, allocations: 7.984 kB / 382.7 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.962e-05/0.1047, allocations: 15.38 kB / 382.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1047, allocations: 0 / 382.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of Templates: time 0.006063/0.1107, allocations: 2.766 MB / 385.5 MB, free: 4.707 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)