Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001094/0.001094, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001086/0.001086, allocations: 196 kB / 18 MB, free: 5.105 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.449/1.449, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001217/0.001217, allocations: 55.94 kB / 327.8 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09359, allocations: 46.62 MB / 374.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002557/0.09619, allocations: 1.193 MB / 375.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.09948, allocations: 2.005 MB / 377.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.584e-05/0.09953, allocations: 0 / 377.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.255e-05/0.09958, allocations: 0 / 377.6 MB, free: 1.395 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.001324/0.1009, allocations: 438.6 kB / 378.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.43e-05/0.1009, allocations: 0 / 378.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.734e-05/0.101, allocations: 7.938 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.606e-05/0.101, allocations: 7.969 kB / 378.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.171e-05/0.1011, allocations: 8 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.263e-05/0.1012, allocations: 7.938 kB / 378.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.386e-06/0.1012, allocations: 0 / 378.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007247/0.1019, allocations: 483.4 kB / 378.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.1019, allocations: 0 / 378.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.53e-05/0.102, allocations: 11.94 kB / 378.6 MB, free: 460 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005682/0.1025, allocations: 339.4 kB / 378.9 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1026, allocations: 0 / 378.9 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1026, allocations: 0 / 378.9 MB, free: 120 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1026, allocations: 0 / 378.9 MB, free: 120 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.1888/0.2914, allocations: 397.3 kB / 379.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.2915, allocations: 10.14 kB / 379.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.292e-05/0.2916, allocations: 80.28 kB / 379.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.2917, allocations: 250.8 kB / 379.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.2917, allocations: 150.9 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.2918, allocations: 158.7 kB / 379.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.894e-05/0.2918, allocations: 105.3 kB / 380 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.2919, allocations: 77 kB / 380.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.2919, allocations: 154.5 kB / 380.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.2919, allocations: 151.1 kB / 380.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.95e-05/0.292, allocations: 156.7 kB / 380.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000225/0.2922, allocations: 445.5 kB / 381 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.56e-05/0.2923, allocations: 167.2 kB / 381.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.103e-05/0.2923, allocations: 91.75 kB / 381.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.2923, allocations: 82.05 kB / 381.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.2925, allocations: 41.36 kB / 381.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.424e-06/0.2925, allocations: 1.156 kB / 381.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.2927, allocations: 43.84 kB / 381.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.2927, allocations: 51.41 kB / 381.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.44e-05/0.2928, allocations: 103.1 kB / 381.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.073e-06/0.2928, allocations: 25.7 kB / 381.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.967e-05/0.2928, allocations: 85.66 kB / 381.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.2929, allocations: 0 / 381.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.2929, allocations: 12.17 kB / 381.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.261e-05/0.293, allocations: 319.6 kB / 382 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/0.293, allocations: 0.9844 kB / 382 MB, free: 10.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.262e-06/0.293, allocations: 1.344 kB / 382 MB, free: 10.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.437e-05/0.293, allocations: 10.2 kB / 382 MB, free: 10.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.293, allocations: 0 / 382 MB, free: 10.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.183e-05/0.2931, allocations: 32.66 kB / 382.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2931, allocations: 9.25 kB / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.2931, allocations: 4.906 kB / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2931, allocations: 0 / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.864e-05/0.2932, allocations: 2.141 kB / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2932, allocations: 1.281 kB / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.908e-05/0.2932, allocations: 0.875 kB / 382.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.2932, allocations: 0.9688 kB / 382.1 MB, free: 10.14 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 5.529e-05/0.2933, allocations: 114 kB / 382.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.2933, allocations: 13.2 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.313e-05/0.2934, allocations: 9.516 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2934, allocations: 0 / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2934, allocations: 1.312 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2934, allocations: 1.172 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.2935, allocations: 149.9 kB / 382.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2935, allocations: 3.516 kB / 382.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.723e-06/0.2935, allocations: 4.594 kB / 382.4 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2935, allocations: 5 kB / 382.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.2935, allocations: 1.516 kB / 382.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2935, allocations: 0 / 382.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2936, allocations: 1.25 kB / 382.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.833e-05/0.2936, allocations: 60.75 kB / 382.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.2937, allocations: 82.86 kB / 382.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.2937, allocations: 4.594 kB / 382.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.322e-05/0.2937, allocations: 1.844 kB / 382.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.689e-05/0.2937, allocations: 0.8438 kB / 382.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2938, allocations: 1.375 kB / 382.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.891e-05/0.2938, allocations: 86.58 kB / 382.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2938, allocations: 0 / 382.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.2944, allocations: 125.5 kB / 382.7 MB, free: 9.582 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.001187/0.2956, allocations: 481 kB / 383.2 MB, free: 9.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.126e-05/0.2957, allocations: 8.812 kB / 383.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2958, allocations: 0 / 383.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.637e-06/0.2958, allocations: 2.406 kB / 383.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001628/0.2959, allocations: 6.875 kB / 383.2 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003078/0.2963, allocations: 103.4 kB / 383.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.2964, allocations: 0.6736 MB / 384 MB, free: 8.594 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.735e-05/0.2965, allocations: 12.91 kB / 384 MB, free: 8.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.2965, allocations: 12.45 kB / 384 MB, free: 8.582 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2965, allocations: 0 / 384 MB, free: 8.582 MB / 318.1 MB Notification: Performance of Templates: time 0.008914/0.3054, allocations: 2.77 MB / 386.8 MB, free: 8.316 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1)