Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001173/0.001173, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001472/0.002646, allocations: 445.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.0008688/0.0008688, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001521/0.00239, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9949/0.9949, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1397/1.135, allocations: 49.48 MB / 220.5 MB, free: 1.453 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 221.8 MB, free: 212 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.795e-05, allocations: 5.406 kB / 221.8 MB, free: 208 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001639/0.001656, allocations: 1.266 MB / 223.1 MB, free: 14.92 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.004035, allocations: 2.128 MB / 225.2 MB, free: 12.78 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.127e-05/0.004056, allocations: 4 kB / 225.2 MB, free: 12.78 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.175e-06/0.004064, allocations: 0 / 225.2 MB, free: 12.78 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009411/0.005005, allocations: 394.3 kB / 225.6 MB, free: 12.39 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.254e-05/0.005028, allocations: 11.94 kB / 225.6 MB, free: 12.38 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 4.144e-05/0.005069, allocations: 11.88 kB / 225.6 MB, free: 12.37 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.494e-05/0.005104, allocations: 3.984 kB / 225.6 MB, free: 12.36 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.768e-05/0.005152, allocations: 8 kB / 225.6 MB, free: 12.36 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.005306, allocations: 3.984 kB / 225.6 MB, free: 12.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.005317, allocations: 4 kB / 225.6 MB, free: 12.35 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006565/0.005974, allocations: 499.3 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.005983, allocations: 0 / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.447e-05/0.005998, allocations: 4 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003712/0.006369, allocations: 355.1 kB / 226.5 MB, free: 11.51 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.288e-05/0.006382, allocations: 0 / 226.5 MB, free: 11.51 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006383, allocations: 0 / 226.5 MB, free: 11.51 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.006395, allocations: 0 / 226.5 MB, free: 11.51 MB / 234.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.0003244/0.00672, allocations: 355.8 kB / 226.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.577e-05/0.006745, allocations: 8.031 kB / 226.8 MB, free: 11.13 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.707e-05/0.006782, allocations: 80.22 kB / 226.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.923e-05/0.006872, allocations: 192.9 kB / 227.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.006904, allocations: 154.9 kB / 227.2 MB, free: 10.68 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.006933, allocations: 150.9 kB / 227.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.098e-05/0.006973, allocations: 105.5 kB / 227.5 MB, free: 10.43 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.006993, allocations: 79.22 kB / 227.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.007028, allocations: 154.6 kB / 227.7 MB, free: 10.2 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.007059, allocations: 154.5 kB / 227.9 MB, free: 10.04 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.212e-05/0.007091, allocations: 154.5 kB / 228 MB, free: 9.891 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.007222, allocations: 353.3 kB / 228.4 MB, free: 9.531 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.312e-05/0.007275, allocations: 165.1 kB / 228.5 MB, free: 9.359 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.056e-05/0.007295, allocations: 84.14 kB / 228.6 MB, free: 9.273 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.007312, allocations: 83.27 kB / 228.7 MB, free: 9.191 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.75e-05/0.007399, allocations: 51.34 kB / 228.7 MB, free: 9.129 MB / 234.7 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.007401, allocations: 0 / 228.7 MB, free: 9.129 MB / 234.7 MB Notification: Performance of matching and sorting (n=1): time 7.986e-05/0.00748, allocations: 29.7 kB / 228.8 MB, free: 9.094 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.007509, allocations: 55.34 kB / 228.8 MB, free: 9.027 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.76e-05/0.007557, allocations: 106.7 kB / 228.9 MB, free: 8.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.045e-06/0.007565, allocations: 25.7 kB / 229 MB, free: 8.879 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.534e-05/0.00758, allocations: 80.14 kB / 229 MB, free: 8.797 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.131e-05/0.007591, allocations: 3.984 kB / 229 MB, free: 8.793 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.007613, allocations: 13.84 kB / 229.1 MB, free: 8.773 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.007685, allocations: 314.8 kB / 229.4 MB, free: 8.457 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.658e-06/0.00769, allocations: 4 kB / 229.4 MB, free: 8.453 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.007695, allocations: 7.984 kB / 229.4 MB, free: 8.445 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.805e-05/0.007713, allocations: 8.797 kB / 229.4 MB, free: 8.434 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.007715, allocations: 0 / 229.4 MB, free: 8.434 MB / 234.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.278e-05/0.007748, allocations: 33.89 kB / 229.4 MB, free: 8.395 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.007758, allocations: 4 kB / 229.4 MB, free: 8.391 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.007762, allocations: 3.938 kB / 229.4 MB, free: 8.387 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.065e-06/0.00777, allocations: 4.078 kB / 229.4 MB, free: 8.383 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.847e-05/0.007789, allocations: 7.938 kB / 229.4 MB, free: 8.375 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.007793, allocations: 3.984 kB / 229.4 MB, free: 8.371 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.648e-05/0.007809, allocations: 7.984 kB / 229.4 MB, free: 8.363 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.007814, allocations: 0 / 229.4 MB, free: 8.363 MB / 234.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.565e-05/0.007859, allocations: 109.8 kB / 229.5 MB, free: 8.246 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-06/0.007862, allocations: 0 / 229.5 MB, free: 8.246 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.839e-05/0.007881, allocations: 15.05 kB / 229.6 MB, free: 8.234 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.007882, allocations: 0 / 229.6 MB, free: 8.234 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.007884, allocations: 3.938 kB / 229.6 MB, free: 8.23 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.007886, allocations: 0 / 229.6 MB, free: 8.23 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.963e-05/0.007946, allocations: 73.88 kB / 229.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.5e-07/0.007946, allocations: 0 / 229.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.404e-06/0.007948, allocations: 0 / 229.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-06/0.007952, allocations: 0 / 229.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.007954, allocations: 4 kB / 229.6 MB, free: 8.137 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-06/0.007957, allocations: 0 / 229.6 MB, free: 8.137 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.007957, allocations: 0 / 229.6 MB, free: 8.137 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.007959, allocations: 3.938 kB / 229.6 MB, free: 8.133 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.212e-05/0.008001, allocations: 57.12 kB / 229.7 MB, free: 8.059 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-06/0.008008, allocations: 0 / 229.7 MB, free: 8.059 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.042e-06/0.008014, allocations: 0 / 229.7 MB, free: 8.059 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.835e-06/0.008022, allocations: 4.031 kB / 229.7 MB, free: 8.055 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-06/0.008023, allocations: 0 / 229.7 MB, free: 8.055 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.268e-05/0.008035, allocations: 24.72 kB / 229.7 MB, free: 8.027 MB / 234.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008035, allocations: 0 / 229.7 MB, free: 8.027 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000231/0.008266, allocations: 131.5 kB / 229.9 MB, free: 7.898 MB / 234.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.000836/0.009102, allocations: 0.5935 MB / 230.5 MB, free: 7.344 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 4.23e-05/0.009145, allocations: 12.86 kB / 230.5 MB, free: 7.328 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.009148, allocations: 0 / 230.5 MB, free: 7.328 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.009e-06/0.009153, allocations: 8.859 kB / 230.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.019e-05/0.009204, allocations: 0 / 230.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005273/0.009731, allocations: 107.8 kB / 230.6 MB, free: 7.188 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.393e-05/0.009755, allocations: 59.34 kB / 230.6 MB, free: 7.109 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 1.952e-05/0.009774, allocations: 12.11 kB / 230.7 MB, free: 7.098 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/0.009803, allocations: 55.38 kB / 230.7 MB, free: 7.043 MB / 234.7 MB Notification: Performance of SimCode: time 9.02e-07/0.009804, allocations: 0 / 230.7 MB, free: 7.043 MB / 234.7 MB Notification: Performance of Templates: time 0.004249/0.01405, allocations: 3.429 MB / 234.1 MB, free: 3.609 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6908898670226336]