Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009523/0.0009523, allocations: 200.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007656/0.0007655, allocations: 104.9 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002108/0.0002109, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1709, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.008682/0.1796, allocations: 12.03 MB / 420.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007634/0.1873, allocations: 10.7 MB / 430.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.147e-05/0.1874, allocations: 4 kB / 430.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.1876, allocations: 55.67 kB / 430.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.1878, allocations: 83.48 kB / 431 MB, free: 4.758 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008038/0.1959, allocations: 3.877 MB / 434.9 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.1961, allocations: 242.9 kB / 435.1 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.948e-05/0.1962, allocations: 9.453 kB / 435.1 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003148/0.1965, allocations: 183.2 kB / 435.3 MB, free: 476 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.976e-05/0.1966, allocations: 71.75 kB / 435.4 MB, free: 404 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.1966, allocations: 4 kB / 435.4 MB, free: 400 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009557/0.2062, allocations: 6.676 MB / 442 MB, free: 9.707 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.661e-05/0.2062, allocations: 27.91 kB / 442.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.491e-05/0.2063, allocations: 93.42 kB / 442.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003382/0.2097, allocations: 2.592 MB / 444.8 MB, free: 6.984 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2098, allocations: 0 / 444.8 MB, free: 6.984 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2098, allocations: 4 kB / 444.8 MB, free: 6.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2098, allocations: 3.938 kB / 444.8 MB, free: 6.977 MB / 314.7 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.004047/0.2138, allocations: 1.104 MB / 445.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2139, allocations: 8.031 kB / 445.9 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.678e-05/0.2139, allocations: 50.73 kB / 445.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004027/0.2143, allocations: 52.7 kB / 446 MB, free: 5.703 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.2145, allocations: 220.1 kB / 446.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2146, allocations: 20.66 kB / 446.2 MB, free: 5.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.2146, allocations: 24.02 kB / 446.2 MB, free: 5.406 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2158, allocations: 391.4 kB / 446.6 MB, free: 4.996 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2158, allocations: 0 / 446.6 MB, free: 4.996 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.2158, allocations: 8 kB / 446.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2159, allocations: 4 kB / 446.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.2172, allocations: 372.2 kB / 447 MB, free: 4.621 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.2184, allocations: 1.195 MB / 448.2 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007508/0.2191, allocations: 295.1 kB / 448.5 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.2194, allocations: 114.9 kB / 448.6 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0912/0.3106, allocations: 53 MB / 0.4898 GB, free: 7.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.3107, allocations: 42.56 kB / 0.4899 GB, free: 7.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/0.3107, allocations: 0 / 0.4899 GB, free: 7.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006718/0.3174, allocations: 1.611 MB / 0.4914 GB, free: 5.512 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.3175, allocations: 106.8 kB / 0.4915 GB, free: 5.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.497e-05/0.3176, allocations: 121.8 kB / 0.4917 GB, free: 5.254 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.3177, allocations: 29.7 kB / 0.4917 GB, free: 5.219 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.844e-05/0.3177, allocations: 108.4 kB / 0.4918 GB, free: 5.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.193e-05/0.3178, allocations: 118.4 kB / 0.4919 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.289e-05/0.3178, allocations: 4 kB / 0.4919 GB, free: 4.988 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.3179, allocations: 330.8 kB / 0.4922 GB, free: 4.656 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.3183, allocations: 139.9 kB / 0.4924 GB, free: 4.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/0.3187, allocations: 206.8 kB / 0.4926 GB, free: 4.293 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007642/0.3195, allocations: 355.1 kB / 0.4929 GB, free: 3.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3195, allocations: 3.984 kB / 0.4929 GB, free: 3.918 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001033/0.3205, allocations: 429.9 kB / 0.4933 GB, free: 3.488 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3206, allocations: 4 kB / 0.4933 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3206, allocations: 4 kB / 0.4933 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.3208, allocations: 44.98 kB / 0.4934 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.3213, allocations: 91.88 kB / 0.4934 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003725/0.3217, allocations: 0.5484 MB / 0.494 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.322, allocations: 27.98 kB / 0.494 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.322, allocations: 19.98 kB / 0.494 GB, free: 2.723 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.3222, allocations: 134.5 kB / 0.4942 GB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.719e-05/0.3223, allocations: 11.91 kB / 0.4942 GB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.3243, allocations: 1.47 MB / 0.4956 GB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.3244, allocations: 19.97 kB / 0.4956 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3244, allocations: 0 / 0.4956 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3244, allocations: 3.984 kB / 0.4956 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1426/0.467, allocations: 1.991 MB / 0.4976 GB, free: 99.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.4671, allocations: 0.9062 kB / 0.4976 GB, free: 99.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/0.4675, allocations: 84.45 kB / 0.4977 GB, free: 99.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.4679, allocations: 83.28 kB / 0.4977 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.4679, allocations: 15.98 kB / 0.4977 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002322/0.4682, allocations: 0.5827 MB / 0.4983 GB, free: 98.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4682, allocations: 3.969 kB / 0.4983 GB, free: 98.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.4701, allocations: 1.697 MB / 0.5 GB, free: 97.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.4702, allocations: 131.1 kB / 0.5001 GB, free: 97.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.4702, allocations: 8.969 kB / 0.5001 GB, free: 97.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000353/0.4706, allocations: 26.88 kB / 0.5001 GB, free: 97.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.4707, allocations: 36.25 kB / 0.5002 GB, free: 97.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.4707, allocations: 18.78 kB / 0.5002 GB, free: 97.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.658e-05/0.4707, allocations: 92.25 kB / 0.5003 GB, free: 97.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4707, allocations: 1.594 kB / 0.5003 GB, free: 97.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00211/0.4729, allocations: 0.9623 MB / 0.5012 GB, free: 97.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005333/0.4782, allocations: 3.283 MB / 0.5044 GB, free: 96.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.4794, allocations: 0.5996 MB / 0.505 GB, free: 95.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4794, allocations: 0.5938 kB / 0.505 GB, free: 95.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006732/0.4801, allocations: 0.5097 MB / 0.5055 GB, free: 95.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007125/0.4808, allocations: 81.41 kB / 0.5056 GB, free: 95.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/0.485, allocations: 2.741 MB / 0.5083 GB, free: 94.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.4852, allocations: 0.8214 MB / 0.5091 GB, free: 93.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.4854, allocations: 134.4 kB / 0.5092 GB, free: 93.45 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4854, allocations: 0 / 0.5092 GB, free: 93.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.635/5.121, allocations: 22.13 MB / 0.5308 GB, free: 71.58 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches