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.001142/0.001142, allocations: 112 kB / 17.68 MB, free: 5.332 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.001204/0.001204, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.332/1.332, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 46.53 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.0964, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005447/0.1019, allocations: 4.471 MB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.1037, allocations: 1.814 MB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.014e-05/0.1038, allocations: 0 / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.104, allocations: 43.69 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.1044, allocations: 123.2 kB / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006243/0.105, allocations: 253.9 kB / 358.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000325/0.1054, allocations: 286.9 kB / 358.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.422e-05/0.1054, allocations: 9.125 kB / 358.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.1057, allocations: 131.6 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1058, allocations: 83.61 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.1059, allocations: 8 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.1061, allocations: 95.94 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.89e-05/0.1062, allocations: 43.83 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.395e-05/0.1063, allocations: 71.72 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1066, allocations: 211.4 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1066, allocations: 0 / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1066, allocations: 4 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1067, allocations: 0 / 359.1 MB, free: 12.04 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.0008911/0.1076, allocations: 491.2 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1076, allocations: 11.97 kB / 359.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.1078, allocations: 24.77 kB / 359.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.1081, allocations: 216.1 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1081, allocations: 8.656 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.1081, allocations: 16.38 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.1085, allocations: 221.6 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.1085, allocations: 7.984 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.1086, allocations: 12 kB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1086, allocations: 4 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.1089, allocations: 148.3 kB / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.1102, allocations: 0.9401 MB / 361.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.1106, allocations: 150.7 kB / 361.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.1107, allocations: 52.83 kB / 361.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005162/0.1112, allocations: 0.5071 MB / 361.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.1113, allocations: 34.56 kB / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.1113, allocations: 4 kB / 361.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002446/0.1137, allocations: 0.7553 MB / 362.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.1138, allocations: 55.41 kB / 362.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.1139, allocations: 152 kB / 362.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.114, allocations: 37.7 kB / 362.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.114, allocations: 139.8 kB / 363.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.607e-05/0.1141, allocations: 78.94 kB / 363.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.1142, allocations: 61.59 kB / 363.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1143, allocations: 326.8 kB / 363.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.1146, allocations: 83.94 kB / 363.6 MB, free: 7.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/0.1149, allocations: 194 kB / 363.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005165/0.1154, allocations: 300.8 kB / 364.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1154, allocations: 0 / 364.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006382/0.1161, allocations: 313.2 kB / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1161, allocations: 8 kB / 364.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1161, allocations: 4 kB / 364.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.1161, allocations: 4 kB / 364.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.1165, allocations: 88.17 kB / 364.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.1165, allocations: 11.98 kB / 364.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.1168, allocations: 12 kB / 364.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.1168, allocations: 19.98 kB / 364.5 MB, free: 6.141 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.0001191/0.1169, allocations: 137.7 kB / 364.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.117, allocations: 15.81 kB / 364.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005951/0.1176, allocations: 249.5 kB / 364.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1176, allocations: 0 / 364.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1176, allocations: 0 / 364.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1176, allocations: 0 / 364.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.1188, allocations: 0.5984 MB / 365.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1189, allocations: 7.984 kB / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.1191, allocations: 47.91 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1192, allocations: 4.125 kB / 365.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.1192, allocations: 11.98 kB / 365.6 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.1192, allocations: 7.938 kB / 365.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1192, allocations: 0 / 365.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.12, allocations: 399 kB / 366 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.12, allocations: 96.94 kB / 366.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.1201, allocations: 11.94 kB / 366.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.1203, allocations: 20.05 kB / 366.1 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.1203, allocations: 7.984 kB / 366.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.1204, allocations: 12 kB / 366.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.898e-05/0.1204, allocations: 112.7 kB / 366.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1205, allocations: 0 / 366.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1208, allocations: 67.94 kB / 366.3 MB, free: 4.234 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.0002251/0.121, allocations: 139.1 kB / 366.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005478/0.1216, allocations: 218.2 kB / 366.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1216, allocations: 0 / 366.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.1219, allocations: 95.81 kB / 366.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.1222, allocations: 40.53 kB / 366.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009974/0.1233, allocations: 459.6 kB / 367.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.1235, allocations: 0.7246 MB / 368 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.1237, allocations: 45.92 kB / 368 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.408e-05/0.1238, allocations: 23.42 kB / 368 MB, free: 2.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1238, allocations: 0 / 368 MB, free: 2.43 MB / 302.1 MB Notification: Performance of Templates: time 0.1589/0.2828, allocations: 2.679 MB / 370.7 MB, free: 25.84 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/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