Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 60.16 kB / 306.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09844, allocations: 50.53 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002615/0.1011, allocations: 1.259 MB / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003265/0.1044, allocations: 2.119 MB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.1044, allocations: 0 / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.05e-05/0.1045, allocations: 0 / 360.2 MB, free: 11.15 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-378: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.001306/0.1058, allocations: 366.3 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.17e-05/0.1058, allocations: 8 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.51e-05/0.1059, allocations: 4 kB / 360.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.1059, allocations: 3.984 kB / 360.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.713e-05/0.106, allocations: 11.92 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.1061, allocations: 7.938 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.688e-06/0.1061, allocations: 0 / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008761/0.107, allocations: 463.5 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.107, allocations: 3.984 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.1071, allocations: 11.98 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007986/0.1079, allocations: 379.3 kB / 361.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.391e-06/0.1079, allocations: 4 kB / 361.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1079, allocations: 0 / 361.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.1079, allocations: 0 / 361.4 MB, free: 9.914 MB / 302.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.0005681/0.1085, allocations: 419.6 kB / 361.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1085, allocations: 16.02 kB / 361.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.405e-05/0.1086, allocations: 76.22 kB / 361.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.1088, allocations: 243.7 kB / 362.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.114e-05/0.1089, allocations: 154.9 kB / 362.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/0.1089, allocations: 158.7 kB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.97e-05/0.109, allocations: 101 kB / 362.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/0.1091, allocations: 75.28 kB / 362.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.1091, allocations: 162.5 kB / 362.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.164e-05/0.1092, allocations: 158.6 kB / 362.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.099e-05/0.1093, allocations: 150.6 kB / 363.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.1096, allocations: 445.9 kB / 363.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.359e-05/0.1097, allocations: 173.1 kB / 363.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.393e-05/0.1097, allocations: 84.08 kB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.1097, allocations: 83.22 kB / 363.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.1099, allocations: 43.41 kB / 363.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.845e-06/0.1099, allocations: 0 / 363.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001293/0.11, allocations: 37.59 kB / 363.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.1101, allocations: 55.34 kB / 364 MB, free: 7.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.642e-05/0.1102, allocations: 106 kB / 364.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.1102, allocations: 25.7 kB / 364.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.1102, allocations: 84.14 kB / 364.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.1102, allocations: 4 kB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.1103, allocations: 13.7 kB / 364.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1104, allocations: 310.8 kB / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.596e-06/0.1104, allocations: 3.938 kB / 364.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.224e-06/0.1104, allocations: 4 kB / 364.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.37e-05/0.1105, allocations: 12.92 kB / 364.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1105, allocations: 0 / 364.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.019e-05/0.1106, allocations: 37.64 kB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1106, allocations: 11.92 kB / 364.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1106, allocations: 0 / 364.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.1106, allocations: 0 / 364.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.911e-05/0.1106, allocations: 0 / 364.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1106, allocations: 4 kB / 364.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1107, allocations: 0 / 364.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.1107, allocations: 4.031 kB / 364.6 MB, free: 6.488 MB / 302.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.759e-05/0.1107, allocations: 109.8 kB / 364.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.1108, allocations: 0 / 364.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.1108, allocations: 11.08 kB / 364.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1108, allocations: 0 / 364.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1108, allocations: 3.984 kB / 364.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1108, allocations: 0 / 364.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.1109, allocations: 153.6 kB / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1109, allocations: 0 / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-06/0.111, allocations: 3.984 kB / 364.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.111, allocations: 4 kB / 364.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.111, allocations: 3.938 kB / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.111, allocations: 0 / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.111, allocations: 0 / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.197e-05/0.1111, allocations: 65.02 kB / 364.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.1111, allocations: 81.02 kB / 365 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1111, allocations: 3.984 kB / 365 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.561e-05/0.1112, allocations: 12.03 kB / 365 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-06/0.1112, allocations: 0 / 365 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.1112, allocations: 0 / 365 MB, free: 5.945 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.745e-05/0.1112, allocations: 87.45 kB / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1112, allocations: 0 / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.1117, allocations: 140 kB / 365.2 MB, free: 5.723 MB / 302.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.00115/0.1129, allocations: 0.4886 MB / 365.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.663e-05/0.1129, allocations: 4 kB / 365.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1129, allocations: 4 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.268e-05/0.113, allocations: 7.984 kB / 365.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.1131, allocations: 18.44 kB / 365.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002486/0.1134, allocations: 104.4 kB / 365.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.1137, allocations: 0.6731 MB / 366.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.513e-05/0.1137, allocations: 11.98 kB / 366.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.615e-05/0.1137, allocations: 11.44 kB / 366.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1137, allocations: 0 / 366.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of Templates: time 0.006534/0.1203, allocations: 3.121 MB / 369.7 MB, free: 1.281 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches