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.008315/0.008315, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001589/0.001589, allocations: 196.2 kB / 16.68 MB, free: 5.961 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.535/1.535, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001257/0.001257, allocations: 46.41 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1276, allocations: 46.63 MB / 373.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002539/0.1302, allocations: 1.171 MB / 374.3 MB, free: 156 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.1335, allocations: 2.002 MB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.012e-05/0.1336, allocations: 0 / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.992e-05/0.1336, allocations: 0 / 376.3 MB, free: 14.14 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.001322/0.1349, allocations: 446.6 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.668e-05/0.135, allocations: 7.984 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.225e-05/0.135, allocations: 7.938 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.364e-05/0.1351, allocations: 4 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.341e-05/0.1351, allocations: 3.938 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.1352, allocations: 19.91 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.1353, allocations: 4 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007439/0.136, allocations: 467.5 kB / 377.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.136, allocations: 4 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.1361, allocations: 7.922 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005021/0.1366, allocations: 331.5 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1366, allocations: 4 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1366, allocations: 0 / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1366, allocations: 0 / 377.6 MB, free: 12.86 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.0005564/0.1372, allocations: 411.4 kB / 378 MB, free: 12.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1372, allocations: 8.031 kB / 378 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.657e-05/0.1373, allocations: 80.22 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.1375, allocations: 243.6 kB / 378.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/0.1376, allocations: 150.9 kB / 378.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.1376, allocations: 162.7 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.549e-05/0.1377, allocations: 101 kB / 378.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/0.1377, allocations: 75.28 kB / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.1378, allocations: 154.6 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.827e-05/0.1379, allocations: 150.6 kB / 379.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.687e-05/0.1379, allocations: 158.5 kB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002732/0.1382, allocations: 449.9 kB / 379.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.269e-05/0.1383, allocations: 165.1 kB / 379.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.742e-05/0.1384, allocations: 92 kB / 379.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.1384, allocations: 79.28 kB / 380 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.1386, allocations: 47.34 kB / 380.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.836e-06/0.1386, allocations: 0 / 380.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001499/0.1387, allocations: 37.7 kB / 380.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.1388, allocations: 51.41 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.119e-05/0.1389, allocations: 101.8 kB / 380.3 MB, free: 9.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.1389, allocations: 29.83 kB / 380.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.1389, allocations: 84.14 kB / 380.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.139, allocations: 0 / 380.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.139, allocations: 9.719 kB / 380.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1391, allocations: 318.8 kB / 380.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.329e-05/0.1391, allocations: 3.938 kB / 380.7 MB, free: 9.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.1391, allocations: 3.984 kB / 380.7 MB, free: 9.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.576e-05/0.1392, allocations: 8.859 kB / 380.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1392, allocations: 8 kB / 380.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.5e-05/0.1392, allocations: 33.64 kB / 380.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1393, allocations: 4 kB / 380.8 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.1393, allocations: 4 kB / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1393, allocations: 0 / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.534e-05/0.1393, allocations: 0 / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.1393, allocations: 0 / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1394, allocations: 0 / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.1394, allocations: 0 / 380.8 MB, free: 9.461 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 9.215e-05/0.1395, allocations: 129.7 kB / 380.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.1395, allocations: 3.906 kB / 380.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.981e-05/0.1395, allocations: 3.125 kB / 380.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1395, allocations: 0 / 380.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1395, allocations: 0 / 380.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1395, allocations: 4 kB / 380.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001199/0.1397, allocations: 149.6 kB / 381 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1397, allocations: 0 / 381 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-06/0.1397, allocations: 0 / 381 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1397, allocations: 4 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.1397, allocations: 8 kB / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1397, allocations: 0 / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1397, allocations: 3.938 kB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.426e-05/0.1398, allocations: 61.06 kB / 381.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.1399, allocations: 81.11 kB / 381.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.1399, allocations: 0 / 381.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.149e-05/0.1399, allocations: 0 / 381.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.1399, allocations: 3.969 kB / 381.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-06/0.1399, allocations: 4 kB / 381.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.888e-05/0.14, allocations: 87.27 kB / 381.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.14, allocations: 0 / 381.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004873/0.1405, allocations: 132 kB / 381.4 MB, free: 8.707 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.001035/0.1415, allocations: 466 kB / 381.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.697e-05/0.1416, allocations: 4 kB / 381.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1416, allocations: 4.062 kB / 381.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.923e-06/0.1416, allocations: 4 kB / 381.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.1418, allocations: 7.844 kB / 381.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002836/0.1421, allocations: 114.5 kB / 382 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.1423, allocations: 0.6729 MB / 382.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.721e-05/0.1424, allocations: 7.984 kB / 382.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.1424, allocations: 19.48 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1424, allocations: 0 / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of Templates: time 0.00659/0.149, allocations: 2.766 MB / 385.5 MB, free: 4.586 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)