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: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 109.4 kB / 16.63 MB, free: 6.816 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.001387/0.001387, allocations: 189.9 kB / 17.55 MB, free: 5.949 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.348/1.348, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 47.19 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09822, allocations: 49.45 MB / 349.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006262/0.1045, allocations: 4.498 MB / 354.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.1067, allocations: 1.806 MB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.1069, allocations: 4 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.1072, allocations: 35.75 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/0.1076, allocations: 111.4 kB / 356.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.1084, allocations: 236.6 kB / 356.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.1088, allocations: 286.9 kB / 356.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.866e-05/0.1088, allocations: 9.125 kB / 356.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.1091, allocations: 131.6 kB / 356.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.1093, allocations: 83.61 kB / 356.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.1093, allocations: 12 kB / 356.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1096, allocations: 99.86 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/0.1096, allocations: 31.91 kB / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1098, allocations: 87.58 kB / 357.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.1102, allocations: 203.7 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1102, allocations: 0 / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1102, allocations: 0 / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.964e-06/0.1102, allocations: 0 / 357.3 MB, free: 13.02 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.000975/0.1112, allocations: 0.4914 MB / 357.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.1112, allocations: 12.02 kB / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.1113, allocations: 42.75 kB / 357.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.1115, allocations: 28.77 kB / 357.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.1117, allocations: 204.1 kB / 358.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1117, allocations: 12.66 kB / 358.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.1118, allocations: 16.38 kB / 358.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.1122, allocations: 217.4 kB / 358.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.1122, allocations: 4 kB / 358.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.1123, allocations: 4 kB / 358.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1123, allocations: 8 kB / 358.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.1127, allocations: 155.8 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.1139, allocations: 0.9362 MB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1143, allocations: 150.7 kB / 359.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.1145, allocations: 56.83 kB / 359.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005251/0.115, allocations: 0.4993 MB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.1151, allocations: 38.5 kB / 360.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.883e-06/0.1151, allocations: 4 kB / 360.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002503/0.1176, allocations: 0.7701 MB / 360.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.1176, allocations: 51.41 kB / 361 MB, free: 8.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.1178, allocations: 156.8 kB / 361.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.1178, allocations: 29.7 kB / 361.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.1179, allocations: 139.9 kB / 361.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.177e-05/0.118, allocations: 74.92 kB / 361.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1181, allocations: 61.59 kB / 361.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.1182, allocations: 330.8 kB / 361.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002341/0.1185, allocations: 83.94 kB / 361.8 MB, free: 8.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.1188, allocations: 194 kB / 362 MB, free: 7.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005312/0.1193, allocations: 294.2 kB / 362.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1193, allocations: 4 kB / 362.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007119/0.12, allocations: 319.4 kB / 362.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1201, allocations: 4 kB / 362.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1201, allocations: 4 kB / 362.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1201, allocations: 8 kB / 362.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.1205, allocations: 80.2 kB / 362.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1205, allocations: 8 kB / 362.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.1207, allocations: 27.88 kB / 362.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/0.1208, allocations: 19.94 kB / 362.8 MB, free: 7.062 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.000132/0.1209, allocations: 145.6 kB / 362.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.121, allocations: 11.91 kB / 362.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006267/0.1216, allocations: 234.7 kB / 363.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1216, allocations: 4 kB / 363.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.1216, allocations: 4 kB / 363.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1216, allocations: 0 / 363.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.1229, allocations: 0.5945 MB / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1229, allocations: 0 / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.1232, allocations: 56.08 kB / 363.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.1233, allocations: 4 kB / 363.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.1233, allocations: 7.938 kB / 363.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1233, allocations: 3.984 kB / 363.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1233, allocations: 4 kB / 363.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008173/0.1241, allocations: 405.2 kB / 364.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.582e-05/0.1242, allocations: 92.95 kB / 364.3 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.1242, allocations: 11.92 kB / 364.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.1245, allocations: 16.06 kB / 364.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.1245, allocations: 15.97 kB / 364.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.1246, allocations: 8 kB / 364.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.024e-05/0.1247, allocations: 121.8 kB / 364.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1247, allocations: 0 / 364.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003939/0.1251, allocations: 64 kB / 364.5 MB, free: 5.16 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.001275/0.1263, allocations: 0.9653 MB / 365.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006117/0.127, allocations: 235.6 kB / 365.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.127, allocations: 0 / 365.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.1272, allocations: 97.06 kB / 365.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.1277, allocations: 27.98 kB / 365.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.131, allocations: 2.413 MB / 368.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.1313, allocations: 0.7169 MB / 369 MB, free: 464 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002889/0.1316, allocations: 53.88 kB / 369 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.1317, allocations: 51.41 kB / 369.1 MB, free: 356 kB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1317, allocations: 0 / 369.1 MB, free: 356 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/0.2983, allocations: 4.361 MB / 373.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.2985, allocations: 192.7 kB / 373.6 MB, free: 25.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.195, allocations: 1.219 kB / 373.6 MB, free: 25.77 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater.fmu > 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