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.001463/0.001463, allocations: 106.4 kB / 16.51 MB, free: 6.719 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.001602/0.001602, allocations: 194.5 kB / 17.43 MB, free: 6.059 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.294/1.294, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009553/0.0009553, allocations: 43.09 kB / 299.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08511/0.08608, allocations: 49.45 MB / 349.4 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005097/0.09121, allocations: 4.498 MB / 353.9 MB, free: 344 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.09298, allocations: 1.818 MB / 355.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.484e-05/0.09303, allocations: 4 kB / 355.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.09325, allocations: 31.81 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.09354, allocations: 111.3 kB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005408/0.09409, allocations: 233.4 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.09443, allocations: 366.8 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.542e-05/0.09448, allocations: 13.11 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.0947, allocations: 123.5 kB / 356.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.09482, allocations: 87.67 kB / 356.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.09485, allocations: 4 kB / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.09509, allocations: 95.92 kB / 356.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.93e-05/0.09517, allocations: 35.88 kB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.064e-05/0.09527, allocations: 75.61 kB / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.09556, allocations: 207.8 kB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.09557, allocations: 0 / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.09558, allocations: 3.938 kB / 357.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.09559, allocations: 0 / 357.1 MB, free: 13.15 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.000896/0.09649, allocations: 495.2 kB / 357.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.09653, allocations: 12.03 kB / 357.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.09672, allocations: 20.84 kB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.09692, allocations: 212 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.09694, allocations: 12.66 kB / 357.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.09698, allocations: 16.38 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.0974, allocations: 229.5 kB / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.09743, allocations: 0 / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.09746, allocations: 8 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.09747, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.09785, allocations: 151.8 kB / 358.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.09906, allocations: 0.944 MB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.09946, allocations: 158.7 kB / 359.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.09961, allocations: 52.83 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004871/0.1001, allocations: 0.5032 MB / 359.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1001, allocations: 38.55 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.1002, allocations: 0 / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002608/0.1028, allocations: 0.763 MB / 360.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.1028, allocations: 51.41 kB / 360.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.103, allocations: 160 kB / 360.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.103, allocations: 29.7 kB / 360.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/0.1031, allocations: 139.9 kB / 361 MB, free: 8.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.1031, allocations: 78.94 kB / 361.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.1032, allocations: 61.61 kB / 361.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1033, allocations: 322.8 kB / 361.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.1036, allocations: 79.94 kB / 361.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.1039, allocations: 194 kB / 361.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005545/0.1045, allocations: 306.9 kB / 362 MB, free: 7.707 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1045, allocations: 0 / 362 MB, free: 7.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006702/0.1052, allocations: 319.1 kB / 362.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1052, allocations: 8 kB / 362.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1052, allocations: 4 kB / 362.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1052, allocations: 4 kB / 362.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.1056, allocations: 83.81 kB / 362.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1056, allocations: 8 kB / 362.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.1059, allocations: 24.27 kB / 362.5 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1059, allocations: 12 kB / 362.5 MB, free: 7.25 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.0001162/0.106, allocations: 133.7 kB / 362.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.286e-05/0.1061, allocations: 15.81 kB / 362.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006833/0.1068, allocations: 253.2 kB / 362.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1068, allocations: 4 kB / 362.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1068, allocations: 0 / 362.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1068, allocations: 3.984 kB / 362.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.1081, allocations: 0.5907 MB / 363.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1081, allocations: 0 / 363.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.1084, allocations: 55.89 kB / 363.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.1084, allocations: 128 / 363.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.1084, allocations: 12 kB / 363.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1085, allocations: 3.938 kB / 363.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.1085, allocations: 7.938 kB / 363.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008297/0.1093, allocations: 410.5 kB / 364 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.1094, allocations: 88.92 kB / 364.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.993e-05/0.1094, allocations: 15.94 kB / 364.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.1097, allocations: 12.05 kB / 364.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.758e-05/0.1097, allocations: 15.98 kB / 364.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.1098, allocations: 11.98 kB / 364.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.705e-05/0.1098, allocations: 105.9 kB / 364.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1098, allocations: 0 / 364.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.1102, allocations: 63.98 kB / 364.3 MB, free: 5.348 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.0002338/0.1105, allocations: 139.1 kB / 364.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005743/0.111, allocations: 220.2 kB / 364.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1111, allocations: 0 / 364.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.1113, allocations: 95.75 kB / 364.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.1117, allocations: 42.78 kB / 364.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009973/0.1127, allocations: 0.5128 MB / 365.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.113, allocations: 0.7128 MB / 366 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002852/0.1133, allocations: 49.89 kB / 366 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.1134, allocations: 27.36 kB / 366.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1134, allocations: 0 / 366.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of Templates: time 0.005348/0.1188, allocations: 2.568 MB / 368.6 MB, free: 0.9375 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