Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 108 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001115, allocations: 50.2 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09531, allocations: 49.44 MB / 350 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006123/0.1015, allocations: 4.475 MB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.1036, allocations: 1.814 MB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1037, allocations: 4 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.104, allocations: 39.73 kB / 356.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003872/0.1044, allocations: 131.1 kB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.1051, allocations: 242 kB / 356.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.1055, allocations: 286.9 kB / 357 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.1055, allocations: 9.125 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.1058, allocations: 131.6 kB / 357.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.1059, allocations: 79.69 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.106, allocations: 8 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.1063, allocations: 99.86 kB / 357.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.1064, allocations: 39.89 kB / 357.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.1065, allocations: 71.72 kB / 357.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.1068, allocations: 203.7 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1068, allocations: 0 / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.686e-06/0.1068, allocations: 0 / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1069, allocations: 11.88 kB / 357.7 MB, free: 12.78 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009452/0.1078, allocations: 499.2 kB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.1078, allocations: 8.031 kB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.108, allocations: 16.84 kB / 358.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.1083, allocations: 216.1 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.1083, allocations: 8.656 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.1083, allocations: 12.38 kB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004176/0.1088, allocations: 225.6 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1088, allocations: 3.938 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.1088, allocations: 16 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1088, allocations: 4 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.1092, allocations: 147.8 kB / 358.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.1105, allocations: 0.9401 MB / 359.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.1109, allocations: 150.8 kB / 359.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.1111, allocations: 56.83 kB / 359.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005188/0.1116, allocations: 0.5109 MB / 360.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1117, allocations: 34.56 kB / 360.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.1117, allocations: 0 / 360.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002607/0.1143, allocations: 0.7578 MB / 361.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.1143, allocations: 55.41 kB / 361.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1145, allocations: 153.5 kB / 361.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.1145, allocations: 33.7 kB / 361.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.1146, allocations: 139.8 kB / 361.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.1147, allocations: 82.92 kB / 361.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.406e-05/0.1148, allocations: 65.53 kB / 361.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1149, allocations: 322.8 kB / 362.1 MB, free: 8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.1151, allocations: 83.94 kB / 362.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.1155, allocations: 190 kB / 362.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005799/0.116, allocations: 302.7 kB / 362.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1161, allocations: 3.938 kB / 362.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007188/0.1168, allocations: 313.1 kB / 362.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1168, allocations: 8 kB / 362.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.1168, allocations: 4 kB / 362.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.1168, allocations: 4 kB / 363 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.1172, allocations: 88.33 kB / 363 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.1173, allocations: 7.938 kB / 363 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.1175, allocations: 15.98 kB / 363.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.1175, allocations: 19.98 kB / 363.1 MB, free: 6.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 0.0001229/0.1177, allocations: 133.7 kB / 363.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/0.1177, allocations: 15.81 kB / 363.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006898/0.1184, allocations: 246.5 kB / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1184, allocations: 0 / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1185, allocations: 0 / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1185, allocations: 0 / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.1198, allocations: 0.5991 MB / 364.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1198, allocations: 0 / 364.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.1201, allocations: 56.08 kB / 364.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.1201, allocations: 0 / 364.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.1202, allocations: 11.98 kB / 364.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.1202, allocations: 11.88 kB / 364.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1202, allocations: 0 / 364.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008336/0.121, allocations: 400.3 kB / 364.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.1211, allocations: 92.94 kB / 364.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.1211, allocations: 12 kB / 364.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.1214, allocations: 15.98 kB / 364.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.1214, allocations: 15.92 kB / 364.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.1215, allocations: 16 kB / 364.7 MB, free: 5.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.556e-05/0.1215, allocations: 107.2 kB / 364.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1215, allocations: 0 / 364.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.1219, allocations: 63.94 kB / 364.9 MB, free: 4.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.0002945/0.1222, allocations: 143.1 kB / 365 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.1229, allocations: 227.1 kB / 365.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.1229, allocations: 4 kB / 365.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.1232, allocations: 87.81 kB / 365.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1236, allocations: 47.83 kB / 365.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.1246, allocations: 471.6 kB / 365.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.1249, allocations: 0.7168 MB / 366.5 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002772/0.1252, allocations: 45.92 kB / 366.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.1253, allocations: 27.42 kB / 366.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1253, allocations: 0 / 366.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of Templates: time 0.005846/0.1312, allocations: 2.68 MB / 369.3 MB, free: 0.4922 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches