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.005889/0.005889, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001931/0.001932, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.533/1.533, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001206/0.001206, allocations: 51.92 kB / 326.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.126, allocations: 46.62 MB / 373.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002407/0.1285, allocations: 1.186 MB / 374.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.1323, allocations: 2.001 MB / 376.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.296e-05/0.1323, allocations: 0 / 376.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.058e-05/0.1324, allocations: 0 / 376.3 MB, free: 1.387 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.001669/0.1341, allocations: 442.6 kB / 376.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.118e-05/0.1341, allocations: 3.938 kB / 376.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.75e-05/0.1342, allocations: 8 kB / 376.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.656e-05/0.1343, allocations: 7.984 kB / 376.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.139e-05/0.1343, allocations: 3.984 kB / 376.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.1345, allocations: 15.86 kB / 376.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.1345, allocations: 4 kB / 376.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008977/0.1354, allocations: 471.5 kB / 377.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.1354, allocations: 11.97 kB / 377.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.911e-05/0.1355, allocations: 0 / 377.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.1361, allocations: 335.4 kB / 377.6 MB, free: 112 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1361, allocations: 0 / 377.6 MB, free: 112 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1361, allocations: 3.938 kB / 377.6 MB, free: 108 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.1361, allocations: 0 / 377.6 MB, free: 108 kB / 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.2751/0.4112, allocations: 396.4 kB / 378 MB, free: 12.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.546e-05/0.4113, allocations: 10.22 kB / 378 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.392e-05/0.4114, allocations: 81.97 kB / 378.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.4115, allocations: 251.9 kB / 378.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.4116, allocations: 151.9 kB / 378.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.4116, allocations: 153.1 kB / 378.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.561e-05/0.4117, allocations: 101 kB / 378.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.4117, allocations: 78.38 kB / 378.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.4117, allocations: 157.7 kB / 378.9 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.4118, allocations: 153.3 kB / 379.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.702e-05/0.4118, allocations: 152.4 kB / 379.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.412, allocations: 451.2 kB / 379.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.629e-05/0.4121, allocations: 169.9 kB / 379.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.4121, allocations: 80.14 kB / 379.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.4121, allocations: 76.66 kB / 380 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.4123, allocations: 54.67 kB / 380.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.344e-06/0.4123, allocations: 0 / 380.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.4125, allocations: 39.03 kB / 380.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.4125, allocations: 51.41 kB / 380.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.037e-05/0.4126, allocations: 102.6 kB / 380.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.4126, allocations: 25.7 kB / 380.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.4127, allocations: 82.22 kB / 380.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.4127, allocations: 8.703 kB / 380.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.4127, allocations: 12.03 kB / 380.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.217e-05/0.4128, allocations: 316.5 kB / 380.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.4128, allocations: 2.406 kB / 380.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.721e-06/0.4128, allocations: 3.469 kB / 380.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.066e-05/0.4128, allocations: 7.516 kB / 380.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4128, allocations: 3.312 kB / 380.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.97e-05/0.4129, allocations: 39.12 kB / 380.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.4129, allocations: 8.969 kB / 380.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4129, allocations: 0 / 380.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.413, allocations: 0.75 kB / 380.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.832e-05/0.413, allocations: 1 kB / 380.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.413, allocations: 0.875 kB / 380.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.413, allocations: 4.453 kB / 380.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.413, allocations: 6.594 kB / 380.8 MB, free: 10.17 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.131e-05/0.4131, allocations: 107.8 kB / 380.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.4131, allocations: 10.52 kB / 380.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.4132, allocations: 9.5 kB / 380.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.4132, allocations: 0 / 380.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.4132, allocations: 0 / 380.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.4132, allocations: 0.7812 kB / 380.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.714e-05/0.4133, allocations: 155.3 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.4133, allocations: 3.5 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-06/0.4133, allocations: 3.688 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.4133, allocations: 3.938 kB / 381 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.4133, allocations: 1.156 kB / 381 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.4133, allocations: 0 / 381 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4133, allocations: 0.9844 kB / 381 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.296e-05/0.4134, allocations: 59.78 kB / 381.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.627e-05/0.4134, allocations: 81.09 kB / 381.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.4135, allocations: 3.938 kB / 381.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.4135, allocations: 5.953 kB / 381.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.4135, allocations: 3.469 kB / 381.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.4135, allocations: 1.344 kB / 381.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.852e-05/0.4135, allocations: 84.59 kB / 381.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4136, allocations: 0 / 381.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006576/0.4142, allocations: 123.6 kB / 381.4 MB, free: 9.621 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.001099/0.4153, allocations: 473.3 kB / 381.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.4154, allocations: 9.875 kB / 381.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4154, allocations: 0 / 381.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.244e-06/0.4155, allocations: 3.328 kB / 381.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001682/0.4156, allocations: 2.438 kB / 381.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002878/0.4159, allocations: 103 kB / 382 MB, free: 9.324 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.4161, allocations: 0.683 MB / 382.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.459e-05/0.4161, allocations: 7.781 kB / 382.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.112e-05/0.4162, allocations: 12.36 kB / 382.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4162, allocations: 0 / 382.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of Templates: time 0.007621/0.4238, allocations: 2.778 MB / 385.5 MB, free: 8.348 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)