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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009066/0.0009066, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008793/0.0008793, allocations: 159.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9568/0.9568, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.331e-05/2.461e-05, allocations: 5.266 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001843/0.001867, allocations: 1.283 MB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.00413, allocations: 2.196 MB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.268e-05/0.004153, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.004168, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 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.0008947/0.005063, allocations: 418.2 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.886e-05/0.005081, allocations: 4 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.348e-05/0.005125, allocations: 15.92 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.601e-05/0.005161, allocations: 3.984 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.364e-05/0.005195, allocations: 7.938 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.854e-05/0.005243, allocations: 4 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-06/0.005252, allocations: 0 / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006548/0.005907, allocations: 0.5421 MB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.239e-05/0.005919, allocations: 3.938 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.222e-05/0.005932, allocations: 4 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.006352, allocations: 466.9 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.006356, allocations: 0 / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.006357, allocations: 0 / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.00636, allocations: 0 / 278.3 MB, free: 12.1 MB / 266.7 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.0002877/0.006648, allocations: 328 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.006683, allocations: 15.98 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.217e-05/0.006725, allocations: 76.22 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.006825, allocations: 189.1 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.006864, allocations: 150.9 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.0069, allocations: 154.9 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.579e-05/0.006945, allocations: 109.5 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.006964, allocations: 75.47 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.175e-05/0.007006, allocations: 158.9 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.562e-05/0.007042, allocations: 154.5 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.675e-05/0.007078, allocations: 154.6 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.007228, allocations: 349.3 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/0.007298, allocations: 181.1 kB / 280.4 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.007319, allocations: 80.14 kB / 280.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.007339, allocations: 75.28 kB / 280.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.162e-05/0.007431, allocations: 47.41 kB / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.007433, allocations: 0 / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 8.732e-05/0.00752, allocations: 37.64 kB / 280.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.007552, allocations: 51.41 kB / 280.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.568e-05/0.007608, allocations: 110.6 kB / 280.8 MB, free: 9.523 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/0.007615, allocations: 25.7 kB / 280.8 MB, free: 9.492 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.969e-05/0.007635, allocations: 84.14 kB / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.007647, allocations: 0 / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-05/0.007667, allocations: 13.72 kB / 280.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.982e-05/0.007736, allocations: 318.8 kB / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.889e-06/0.007741, allocations: 8.109 kB / 281.2 MB, free: 9.059 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.576e-06/0.007745, allocations: 0 / 281.2 MB, free: 9.059 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.123e-05/0.007766, allocations: 8.859 kB / 281.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.007768, allocations: 0 / 281.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.801e-05/0.007806, allocations: 33.64 kB / 281.2 MB, free: 9.008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.007816, allocations: 4 kB / 281.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.00782, allocations: 0 / 281.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.007832, allocations: 4 kB / 281.2 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.826e-05/0.00785, allocations: 3.938 kB / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.337e-06/0.007854, allocations: 4.078 kB / 281.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.468e-05/0.007868, allocations: 7.938 kB / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.007873, allocations: 0 / 281.3 MB, free: 8.984 MB / 266.7 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.333e-05/0.007926, allocations: 109.8 kB / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-06/0.007931, allocations: 0 / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.007952, allocations: 3.156 kB / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.007953, allocations: 0 / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.007954, allocations: 0 / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.007957, allocations: 8.125 kB / 281.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.064e-05/0.008018, allocations: 61.89 kB / 281.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.2e-07/0.008018, allocations: 0 / 281.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-06/0.008022, allocations: 11.98 kB / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.41e-07/0.008023, allocations: 0 / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-06/0.008026, allocations: 0 / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.4e-07/0.008027, allocations: 0 / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.008027, allocations: 0 / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.029e-05/0.008077, allocations: 69 kB / 281.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-06/0.008083, allocations: 0 / 281.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.873e-06/0.008089, allocations: 0 / 281.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-06/0.008096, allocations: 4 kB / 281.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.008105, allocations: 4 kB / 281.5 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-06/0.008107, allocations: 0 / 281.5 MB, free: 8.676 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.378e-05/0.008121, allocations: 20.86 kB / 281.5 MB, free: 8.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008121, allocations: 0 / 281.5 MB, free: 8.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002609/0.008382, allocations: 151.5 kB / 281.7 MB, free: 8.504 MB / 266.7 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.0008608/0.009243, allocations: 0.5607 MB / 282.3 MB, free: 8.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.511e-05/0.009298, allocations: 16.73 kB / 282.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.009301, allocations: 0 / 282.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.673e-06/0.009308, allocations: 8.859 kB / 282.3 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.501e-05/0.009373, allocations: 4.609 kB / 282.3 MB, free: 7.988 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/0.009739, allocations: 116.7 kB / 282.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.909e-05/0.009768, allocations: 55.48 kB / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.889e-05/0.009807, allocations: 11.92 kB / 282.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.009839, allocations: 51.38 kB / 282.5 MB, free: 7.711 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.00984, allocations: 0 / 282.5 MB, free: 7.711 MB / 266.7 MB Notification: Performance of Templates: time 0.00513/0.01497, allocations: 3.865 MB / 286.4 MB, free: 3.848 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7227670778520405]