Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000898/0.000898, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002607/0.003505, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009067/0.0009067, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001176/0.002082, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9782/0.9782, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0923/1.071, allocations: 53.64 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.321e-05, allocations: 2.312 kB / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002662/0.002686, allocations: 1.286 MB / 245.8 MB, free: 13.06 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.006109, allocations: 2.205 MB / 248 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.038e-05/0.00614, allocations: 0 / 248 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.06e-05/0.00615, allocations: 0 / 248 MB, free: 10.84 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.00146/0.00761, allocations: 424.9 kB / 248.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.628e-05/0.007636, allocations: 3.984 kB / 248.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.864e-05/0.007685, allocations: 15.94 kB / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.918e-05/0.007724, allocations: 0 / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.199e-05/0.007786, allocations: 11.98 kB / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.568e-05/0.007852, allocations: 7.938 kB / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.007863, allocations: 0 / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000752/0.008615, allocations: 0.5344 MB / 249 MB, free: 9.855 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.008628, allocations: 7.938 kB / 249 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.254e-05/0.00864, allocations: 0 / 249 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.009084, allocations: 395.1 kB / 249.4 MB, free: 9.461 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-05/0.009102, allocations: 8 kB / 249.4 MB, free: 9.453 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.009104, allocations: 0 / 249.4 MB, free: 9.453 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.009118, allocations: 0 / 249.4 MB, free: 9.453 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.0004026/0.00952, allocations: 367.6 kB / 249.7 MB, free: 9.07 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.009553, allocations: 12.03 kB / 249.7 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.009708, allocations: 76.22 kB / 249.8 MB, free: 8.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.009831, allocations: 189 kB / 250 MB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.009867, allocations: 150.9 kB / 250.2 MB, free: 8.625 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.009899, allocations: 154.9 kB / 250.3 MB, free: 8.473 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.229e-05/0.009952, allocations: 113.5 kB / 250.4 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.01001, allocations: 83.2 kB / 250.5 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.01005, allocations: 154.6 kB / 250.6 MB, free: 8.121 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.01009, allocations: 150.6 kB / 250.8 MB, free: 7.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.038e-05/0.01013, allocations: 154.6 kB / 250.9 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.01027, allocations: 353.3 kB / 251.3 MB, free: 7.461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.01041, allocations: 173.1 kB / 251.5 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.35e-05/0.01044, allocations: 80.14 kB / 251.5 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.01045, allocations: 75.28 kB / 251.6 MB, free: 7.125 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.513e-05/0.01054, allocations: 43.41 kB / 251.7 MB, free: 7.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.01054, allocations: 0 / 251.7 MB, free: 7.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 8.977e-05/0.01063, allocations: 37.64 kB / 251.7 MB, free: 7.027 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.01066, allocations: 59.34 kB / 251.7 MB, free: 6.957 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.575e-05/0.01072, allocations: 106.7 kB / 251.8 MB, free: 6.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.01073, allocations: 25.7 kB / 251.9 MB, free: 6.809 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.884e-05/0.01075, allocations: 84.14 kB / 252 MB, free: 6.723 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.01076, allocations: 4 kB / 252 MB, free: 6.719 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.183e-05/0.01078, allocations: 9.719 kB / 252 MB, free: 6.703 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.01087, allocations: 318.8 kB / 252.3 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.979e-06/0.01088, allocations: 4 kB / 252.3 MB, free: 6.379 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.01088, allocations: 48 / 252.3 MB, free: 6.379 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.592e-05/0.01091, allocations: 13.05 kB / 252.3 MB, free: 6.363 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.01091, allocations: 4 kB / 252.3 MB, free: 6.359 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.478e-05/0.01095, allocations: 33.64 kB / 252.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.01096, allocations: 7.594 kB / 252.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01097, allocations: 0 / 252.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.01097, allocations: 0 / 252.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.002e-05/0.011, allocations: 11.92 kB / 252.4 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-06/0.01101, allocations: 0 / 252.4 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.01102, allocations: 4 kB / 252.4 MB, free: 6.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.01103, allocations: 0 / 252.4 MB, free: 6.301 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 5.745e-05/0.01109, allocations: 109.9 kB / 252.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-06/0.01109, allocations: 4 kB / 252.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.01112, allocations: 3.156 kB / 252.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.01112, allocations: 0 / 252.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.01113, allocations: 7.875 kB / 252.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.01113, allocations: 3.984 kB / 252.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.435e-05/0.0112, allocations: 65.91 kB / 252.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.01121, allocations: 0 / 252.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.01121, allocations: 0 / 252.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.01121, allocations: 4 kB / 252.6 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.01122, allocations: 0 / 252.6 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-06/0.01122, allocations: 7.938 kB / 252.6 MB, free: 6.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.01122, allocations: 0 / 252.6 MB, free: 6.07 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.01122, allocations: 7.922 kB / 252.6 MB, free: 6.062 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.761e-05/0.01127, allocations: 57.12 kB / 252.6 MB, free: 5.988 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-06/0.01128, allocations: 0 / 252.6 MB, free: 5.988 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-06/0.01128, allocations: 0 / 252.6 MB, free: 5.988 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.0113, allocations: 0 / 252.6 MB, free: 5.988 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-06/0.0113, allocations: 4 kB / 252.6 MB, free: 5.984 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.429e-05/0.01131, allocations: 16.95 kB / 252.6 MB, free: 5.965 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01131, allocations: 0 / 252.6 MB, free: 5.965 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003295/0.01164, allocations: 155.6 kB / 252.8 MB, free: 5.812 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.001088/0.01273, allocations: 0.6006 MB / 253.4 MB, free: 5.34 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.166e-05/0.01278, allocations: 20.73 kB / 253.4 MB, free: 5.316 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.01279, allocations: 0 / 253.4 MB, free: 5.316 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.693e-06/0.01279, allocations: 12.84 kB / 253.4 MB, free: 5.301 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.841e-05/0.01285, allocations: 3.125 kB / 253.4 MB, free: 5.301 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006227/0.01347, allocations: 120.7 kB / 253.6 MB, free: 5.156 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.01e-05/0.01351, allocations: 55.36 kB / 253.6 MB, free: 5.082 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.454e-05/0.01354, allocations: 16.05 kB / 253.6 MB, free: 5.066 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.01357, allocations: 51.38 kB / 253.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01357, allocations: 0 / 253.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of Templates: time 0.005407/0.01898, allocations: 3.861 MB / 257.5 MB, free: 1.152 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.682892053388059]