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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008137/0.0008137, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001869, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000684/0.000684, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008897/0.001574, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9013/0.9013, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08958/0.9909, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 3.938 kB / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.621e-05/2.824e-05, allocations: 2.312 kB / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001721/0.001749, allocations: 1.259 MB / 240.8 MB, free: 1.934 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002294/0.004043, allocations: 2.093 MB / 242.9 MB, free: 15.83 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.072e-05/0.004064, allocations: 0 / 242.9 MB, free: 15.83 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.834e-06/0.004072, allocations: 0 / 242.9 MB, free: 15.83 MB / 250.7 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.0009312/0.005003, allocations: 394.3 kB / 243.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.298e-05/0.005026, allocations: 11.88 kB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.387e-05/0.00507, allocations: 11.94 kB / 243.3 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.005108, allocations: 3.984 kB / 243.3 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.075e-05/0.005168, allocations: 11.94 kB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.772e-05/0.005226, allocations: 0 / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.005238, allocations: 8 kB / 243.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00073/0.005968, allocations: 499.3 kB / 243.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.374e-05/0.005982, allocations: 0 / 243.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.594e-05/0.005998, allocations: 4 kB / 243.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005128/0.006511, allocations: 351.2 kB / 244.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.612e-05/0.006527, allocations: 0 / 244.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.006529, allocations: 0 / 244.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.006544, allocations: 0 / 244.1 MB, free: 14.56 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.0003957/0.00694, allocations: 355.8 kB / 244.5 MB, free: 14.19 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.006972, allocations: 12.03 kB / 244.5 MB, free: 14.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.007013, allocations: 84.2 kB / 244.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.932e-05/0.007112, allocations: 189 kB / 244.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.007146, allocations: 150.9 kB / 244.9 MB, free: 13.74 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.007176, allocations: 150.9 kB / 245.1 MB, free: 13.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.599e-05/0.007222, allocations: 101.5 kB / 245.2 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.007243, allocations: 83.22 kB / 245.2 MB, free: 13.4 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.007284, allocations: 150.6 kB / 245.4 MB, free: 13.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.007319, allocations: 154.6 kB / 245.5 MB, free: 13.1 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.91e-05/0.007358, allocations: 158.4 kB / 245.7 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.007763, allocations: 357.3 kB / 246 MB, free: 12.58 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.221e-05/0.007825, allocations: 169.1 kB / 246.2 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.369e-05/0.007849, allocations: 88.14 kB / 246.3 MB, free: 12.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.007873, allocations: 75.28 kB / 246.4 MB, free: 12.24 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001046/0.007977, allocations: 47.34 kB / 246.4 MB, free: 12.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 2.033e-06/0.00798, allocations: 0 / 246.4 MB, free: 12.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001111/0.008091, allocations: 33.7 kB / 246.4 MB, free: 12.14 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.008126, allocations: 55.34 kB / 246.5 MB, free: 12.08 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.834e-05/0.008195, allocations: 110.7 kB / 246.6 MB, free: 11.96 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-06/0.008204, allocations: 25.7 kB / 246.6 MB, free: 11.93 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.067e-05/0.008224, allocations: 84.27 kB / 246.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.008239, allocations: 0 / 246.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.008263, allocations: 17.7 kB / 246.7 MB, free: 11.82 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.008335, allocations: 310.8 kB / 247 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.801e-06/0.008341, allocations: 0 / 247 MB, free: 11.5 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-06/0.008347, allocations: 7.938 kB / 247 MB, free: 11.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.301e-05/0.00837, allocations: 8.844 kB / 247.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.008372, allocations: 0 / 247.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.447e-05/0.008406, allocations: 33.7 kB / 247.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.008418, allocations: 8.094 kB / 247.1 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.008423, allocations: 0 / 247.1 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.008432, allocations: 0 / 247.1 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-05/0.008458, allocations: 3.938 kB / 247.1 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.008462, allocations: 3.984 kB / 247.1 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.731e-05/0.008479, allocations: 4 kB / 247.1 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.008484, allocations: 0 / 247.1 MB, free: 11.43 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.522e-05/0.00854, allocations: 113.8 kB / 247.2 MB, free: 11.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.757e-06/0.008548, allocations: 11.94 kB / 247.2 MB, free: 11.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.948e-05/0.008578, allocations: 7.109 kB / 247.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.008582, allocations: 4 kB / 247.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.008586, allocations: 7.938 kB / 247.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.008589, allocations: 0 / 247.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.78e-05/0.008657, allocations: 65.89 kB / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.008658, allocations: 0 / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.008661, allocations: 0 / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-06/0.008666, allocations: 4.125 kB / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.008667, allocations: 7.984 kB / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-06/0.00867, allocations: 0 / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.008671, allocations: 0 / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.008673, allocations: 3.938 kB / 247.3 MB, free: 11.17 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.641e-05/0.008719, allocations: 65.11 kB / 247.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.643e-06/0.008726, allocations: 0 / 247.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.209e-06/0.008731, allocations: 0 / 247.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-06/0.008739, allocations: 0 / 247.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-06/0.00874, allocations: 3.938 kB / 247.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.059e-05/0.008751, allocations: 12.8 kB / 247.4 MB, free: 11.07 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008751, allocations: 0 / 247.4 MB, free: 11.07 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002945/0.009046, allocations: 127.7 kB / 247.5 MB, free: 10.95 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.0009186/0.009964, allocations: 0.6045 MB / 248.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.121e-05/0.01002, allocations: 16.83 kB / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.01002, allocations: 4.062 kB / 248.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-06/0.01002, allocations: 8.859 kB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.092e-05/0.01009, allocations: 4 kB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.01066, allocations: 108.7 kB / 248.3 MB, free: 10.32 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.567e-05/0.01068, allocations: 59.28 kB / 248.3 MB, free: 10.24 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.304e-05/0.01071, allocations: 12 kB / 248.3 MB, free: 10.23 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.061e-05/0.01074, allocations: 59.42 kB / 248.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01074, allocations: 0 / 248.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of Templates: time 0.005029/0.01577, allocations: 3.424 MB / 251.8 MB, free: 6.742 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.5829373449087143]