Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_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.001382/0.001382, allocations: 101.2 kB / 17.73 MB, free: 5.324 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.001132/0.001132, allocations: 192.2 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 47.94 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2875, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002535/0.2901, allocations: 1.192 MB / 402.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003304/0.2934, allocations: 1.964 MB / 404.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.219e-05/0.2935, allocations: 3.938 kB / 404.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.738e-05/0.2935, allocations: 0 / 404.5 MB, free: 5.719 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001179/0.2947, allocations: 438.1 kB / 405 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.49e-05/0.2948, allocations: 0 / 405 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.505e-05/0.2948, allocations: 11.94 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.627e-05/0.2949, allocations: 11.98 kB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.626e-05/0.2949, allocations: 3.938 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.2954, allocations: 7.984 kB / 405 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.2954, allocations: 0 / 405 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006669/0.2961, allocations: 475.5 kB / 405.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.2961, allocations: 11.92 kB / 405.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.2961, allocations: 3.938 kB / 405.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.2966, allocations: 339.4 kB / 405.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2967, allocations: 0 / 405.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.2967, allocations: 0 / 405.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.2967, allocations: 0 / 405.8 MB, free: 4.445 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.0004854/0.2972, allocations: 407.5 kB / 406.2 MB, free: 4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.2972, allocations: 11.89 kB / 406.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.71e-05/0.2973, allocations: 80.22 kB / 406.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.2975, allocations: 247.6 kB / 406.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.78e-05/0.2976, allocations: 150.9 kB / 406.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.2976, allocations: 162.6 kB / 406.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.21e-05/0.2977, allocations: 105 kB / 406.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.2978, allocations: 75.28 kB / 407 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.2978, allocations: 150.6 kB / 407.2 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.936e-05/0.2979, allocations: 150.6 kB / 407.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.794e-05/0.298, allocations: 150.6 kB / 407.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002862/0.2983, allocations: 453.9 kB / 407.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.202e-05/0.2984, allocations: 169.1 kB / 408.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.058e-05/0.2984, allocations: 84.08 kB / 408.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.2985, allocations: 75.28 kB / 408.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.2986, allocations: 51.41 kB / 408.3 MB, free: 1.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.795e-06/0.2986, allocations: 0 / 408.3 MB, free: 1.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001551/0.2988, allocations: 37.64 kB / 408.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.2988, allocations: 51.41 kB / 408.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.299, allocations: 101.8 kB / 408.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.299, allocations: 29.64 kB / 408.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.299, allocations: 84.14 kB / 408.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.2991, allocations: 128 / 408.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.2991, allocations: 17.72 kB / 408.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2992, allocations: 314.8 kB / 408.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.28e-05/0.2993, allocations: 3.984 kB / 408.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.289e-06/0.2993, allocations: 0 / 408.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.823e-05/0.2993, allocations: 12.8 kB / 408.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2993, allocations: 0 / 408.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.21e-05/0.2994, allocations: 41.55 kB / 409 MB, free: 1.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2994, allocations: 11.06 kB / 409 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.2994, allocations: 0 / 409 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2994, allocations: 4 kB / 409 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.921e-05/0.2995, allocations: 0 / 409 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.2995, allocations: 4 kB / 409 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.2995, allocations: 0 / 409 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2995, allocations: 0 / 409 MB, free: 1.043 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.708e-05/0.2996, allocations: 117.8 kB / 409.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.2996, allocations: 3.938 kB / 409.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.2997, allocations: 7.125 kB / 409.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2997, allocations: 0 / 409.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2997, allocations: 0 / 409.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2997, allocations: 0 / 409.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.2999, allocations: 157.6 kB / 409.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2999, allocations: 0 / 409.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.196e-06/0.2999, allocations: 0 / 409.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2999, allocations: 192 / 409.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2999, allocations: 7.938 kB / 409.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2999, allocations: 0 / 409.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2999, allocations: 0 / 409.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.877e-05/0.3, allocations: 69.05 kB / 409.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.3001, allocations: 81.11 kB / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.3001, allocations: 0 / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.229e-05/0.3001, allocations: 0 / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.027e-05/0.3001, allocations: 0 / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3001, allocations: 0 / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.126e-05/0.3002, allocations: 87.2 kB / 409.5 MB, free: 436 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3002, allocations: 4.031 kB / 409.5 MB, free: 432 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004095/0.3006, allocations: 128 kB / 409.6 MB, free: 304 kB / 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.001074/0.3017, allocations: 493.4 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.165e-05/0.3018, allocations: 7.938 kB / 410.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3018, allocations: 0 / 410.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.4e-06/0.3018, allocations: 0 / 410.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.302, allocations: 11.94 kB / 410.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/0.3023, allocations: 124.4 kB / 410.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.3026, allocations: 0.6768 MB / 410.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.39e-05/0.3026, allocations: 19.42 kB / 410.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3026, allocations: 0 / 410.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of Templates: time 0.004995/0.3076, allocations: 3.084 MB / 414 MB, free: 11.91 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches