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.001096/0.001096, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001532/0.002628, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001067/0.001067, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001308/0.002375, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.949/0.949, allocations: 177.4 MB / 189.9 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0907/1.04, allocations: 53.86 MB / 243.8 MB, free: 14.9 MB / 250.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.232e-06/1.232e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.328e-05, allocations: 6.25 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001388/0.001401, allocations: 1.282 MB / 246.3 MB, free: 12.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002706/0.004106, allocations: 2.209 MB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.724e-05/0.004124, allocations: 0 / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.012e-05/0.004134, allocations: 3.938 kB / 248.5 MB, free: 10.15 MB / 250.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.001242/0.005375, allocations: 429.3 kB / 248.9 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.076e-05/0.005396, allocations: 0 / 248.9 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 3.779e-05/0.005434, allocations: 7.938 kB / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.22e-05/0.005466, allocations: 7.984 kB / 248.9 MB, free: 9.719 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.005511, allocations: 15.92 kB / 248.9 MB, free: 9.703 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.807e-05/0.005549, allocations: 7.938 kB / 248.9 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.005558, allocations: 0 / 248.9 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006664/0.006224, allocations: 0.5383 MB / 249.5 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.508e-06/0.006234, allocations: 0 / 249.5 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.168e-05/0.006245, allocations: 4 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004155/0.006661, allocations: 395.1 kB / 249.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.006673, allocations: 0 / 249.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.006674, allocations: 0 / 249.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.006686, allocations: 0 / 249.9 MB, free: 8.766 MB / 250.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.000352/0.007038, allocations: 379.6 kB / 250.2 MB, free: 8.371 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.007068, allocations: 8.625 kB / 250.2 MB, free: 8.363 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.007108, allocations: 76.22 kB / 250.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.261e-05/0.0072, allocations: 193 kB / 250.5 MB, free: 8.074 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.007236, allocations: 154.9 kB / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.007276, allocations: 150.9 kB / 250.8 MB, free: 7.773 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.214e-05/0.007319, allocations: 101.5 kB / 250.9 MB, free: 7.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.007336, allocations: 75.47 kB / 251 MB, free: 7.594 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.007372, allocations: 154.9 kB / 251.1 MB, free: 7.441 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.007407, allocations: 154.5 kB / 251.3 MB, free: 7.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.768e-05/0.007445, allocations: 154.6 kB / 251.4 MB, free: 7.137 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.007586, allocations: 361.2 kB / 251.8 MB, free: 6.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.691e-05/0.007643, allocations: 173.1 kB / 252 MB, free: 6.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.007664, allocations: 80.14 kB / 252 MB, free: 6.508 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.007682, allocations: 79.28 kB / 252.1 MB, free: 6.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.429e-05/0.007766, allocations: 43.36 kB / 252.2 MB, free: 6.375 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 1.603e-06/0.007768, allocations: 0 / 252.2 MB, free: 6.375 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 7.96e-05/0.007847, allocations: 37.69 kB / 252.2 MB, free: 6.332 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.007873, allocations: 51.41 kB / 252.2 MB, free: 6.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.829e-05/0.007921, allocations: 106.8 kB / 252.3 MB, free: 6.152 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.00793, allocations: 33.69 kB / 252.4 MB, free: 6.113 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.833e-05/0.007948, allocations: 84.12 kB / 252.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.041e-05/0.007959, allocations: 0 / 252.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/0.007982, allocations: 13.72 kB / 252.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.89e-05/0.008051, allocations: 310.8 kB / 252.8 MB, free: 5.695 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.988e-06/0.008055, allocations: 48 / 252.8 MB, free: 5.695 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.828e-06/0.008059, allocations: 4 kB / 252.8 MB, free: 5.691 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.089e-05/0.008079, allocations: 12.8 kB / 252.8 MB, free: 5.676 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.008081, allocations: 0 / 252.8 MB, free: 5.676 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.361e-05/0.008114, allocations: 41.75 kB / 252.8 MB, free: 5.629 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.008125, allocations: 8 kB / 252.8 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.008129, allocations: 0 / 252.8 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.761e-06/0.008134, allocations: 0 / 252.8 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.777e-05/0.008152, allocations: 0 / 252.8 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.008155, allocations: 3.938 kB / 252.8 MB, free: 5.617 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.501e-05/0.00817, allocations: 3.938 kB / 252.8 MB, free: 5.613 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.008175, allocations: 4 kB / 252.9 MB, free: 5.609 MB / 250.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 4.819e-05/0.008223, allocations: 105.8 kB / 253 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-06/0.008228, allocations: 3.984 kB / 253 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.008253, allocations: 15.19 kB / 253 MB, free: 5.477 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.008254, allocations: 3.938 kB / 253 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.008256, allocations: 0 / 253 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.008259, allocations: 4.125 kB / 253 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.147e-05/0.00832, allocations: 65.89 kB / 253 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.008321, allocations: 0 / 253 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.436e-06/0.008325, allocations: 7.969 kB / 253.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-06/0.008332, allocations: 4 kB / 253.1 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.008334, allocations: 0 / 253.1 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.008338, allocations: 4 kB / 253.1 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.008339, allocations: 0 / 253.1 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.00834, allocations: 4 kB / 253.1 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.991e-05/0.008379, allocations: 57.06 kB / 253.1 MB, free: 5.293 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-06/0.008387, allocations: 4 kB / 253.1 MB, free: 5.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.959e-06/0.008392, allocations: 0 / 253.1 MB, free: 5.289 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-06/0.008399, allocations: 0 / 253.1 MB, free: 5.289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-06/0.008401, allocations: 0 / 253.1 MB, free: 5.289 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.069e-05/0.008412, allocations: 8.859 kB / 253.1 MB, free: 5.277 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008412, allocations: 3.938 kB / 253.1 MB, free: 5.273 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000284/0.008696, allocations: 155.5 kB / 253.3 MB, free: 5.121 MB / 250.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.0008654/0.009561, allocations: 0.5936 MB / 253.9 MB, free: 4.629 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.467e-05/0.009606, allocations: 12.8 kB / 253.9 MB, free: 4.613 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.009609, allocations: 0 / 253.9 MB, free: 4.613 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.009e-06/0.009614, allocations: 12.92 kB / 253.9 MB, free: 4.598 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.408e-05/0.009668, allocations: 15.94 kB / 253.9 MB, free: 4.582 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005415/0.01021, allocations: 112.7 kB / 254 MB, free: 4.445 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.38e-05/0.01023, allocations: 59.22 kB / 254.1 MB, free: 4.367 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.501e-05/0.01026, allocations: 7.984 kB / 254.1 MB, free: 4.359 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.01028, allocations: 51.38 kB / 254.2 MB, free: 4.309 MB / 250.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01029, allocations: 4.062 kB / 254.2 MB, free: 4.305 MB / 250.7 MB Notification: Performance of Templates: time 0.004923/0.01521, allocations: 3.864 MB / 258 MB, free: 448 kB / 250.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 -emit_protected -ignoreHideResult -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.7435815315693617]