Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 118 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 227.4 MB / 246.4 MB, free: 9.105 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 60.44 kB / 306.5 MB, free: 0.6758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.08137, allocations: 50.53 MB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01367/0.09507, allocations: 13.15 MB / 370.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1563/0.2514, allocations: 11.6 MB / 381.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.2516, allocations: 1.375 kB / 381.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.252, allocations: 70.23 kB / 381.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003424/0.2524, allocations: 81.55 kB / 382 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01349/0.2659, allocations: 4.467 MB / 386.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.2663, allocations: 230.5 kB / 386.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.041e-05/0.2663, allocations: 19.34 kB / 386.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.2667, allocations: 187.1 kB / 386.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2669, allocations: 71.25 kB / 386.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.2669, allocations: 8.906 kB / 386.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01172/0.2786, allocations: 6.9 MB / 393.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.2788, allocations: 30.81 kB / 393.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.2789, allocations: 72.25 kB / 393.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007527/0.2864, allocations: 3.889 MB / 397.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2864, allocations: 0 / 397.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2865, allocations: 0 / 397.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.2865, allocations: 0 / 397.8 MB, free: 0.6602 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.005239/0.2917, allocations: 1.163 MB / 399 MB, free: 15.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.2918, allocations: 7.688 kB / 399 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.891e-05/0.2919, allocations: 48.61 kB / 399.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005096/0.2924, allocations: 47.61 kB / 399.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.2927, allocations: 219.4 kB / 399.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.2927, allocations: 9.312 kB / 399.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.2928, allocations: 18.38 kB / 399.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.294, allocations: 386.2 kB / 399.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2941, allocations: 0.875 kB / 399.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.2941, allocations: 7.781 kB / 399.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.2941, allocations: 2.812 kB / 399.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2955, allocations: 357.2 kB / 400.1 MB, free: 15.07 MB / 318.1 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.001406/0.297, allocations: 1.191 MB / 401.3 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008012/0.2978, allocations: 283.6 kB / 401.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.298, allocations: 112.4 kB / 401.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09423/0.3923, allocations: 52.59 MB / 454.2 MB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.3923, allocations: 46.55 kB / 454.3 MB, free: 3.531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.3924, allocations: 0 / 454.3 MB, free: 3.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006833/0.3992, allocations: 1.568 MB / 455.9 MB, free: 1.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.3993, allocations: 106.8 kB / 456 MB, free: 1.777 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.793e-05/0.3994, allocations: 125.8 kB / 456.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.3994, allocations: 29.7 kB / 456.1 MB, free: 1.609 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.3995, allocations: 104.5 kB / 456.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.352e-05/0.3996, allocations: 122.3 kB / 456.3 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.3997, allocations: 65.69 kB / 456.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.3998, allocations: 330.8 kB / 456.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.4002, allocations: 131.9 kB / 456.8 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.4006, allocations: 202.5 kB / 457 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/0.4014, allocations: 350.5 kB / 457.4 MB, free: 268 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4014, allocations: 0 / 457.4 MB, free: 268 kB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001026/0.4024, allocations: 429.9 kB / 457.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4025, allocations: 12.22 kB / 457.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4025, allocations: 0 / 457.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/0.4027, allocations: 33.22 kB / 457.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.4032, allocations: 87.88 kB / 457.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003594/0.4035, allocations: 0.5523 MB / 458.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/0.4038, allocations: 24.02 kB / 458.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.4039, allocations: 23.86 kB / 458.5 MB, free: 15.07 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.4041, allocations: 141.6 kB / 458.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-05/0.4042, allocations: 23.73 kB / 458.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.4062, allocations: 1.443 MB / 460.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/0.4063, allocations: 23.98 kB / 460.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4063, allocations: 4 kB / 460.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.4063, allocations: 0 / 460.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002872/0.4092, allocations: 1.967 MB / 462.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.4092, allocations: 4 kB / 462.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004415/0.4096, allocations: 87.98 kB / 462.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002915/0.4099, allocations: 72.64 kB / 462.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.41, allocations: 15.98 kB / 462.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003103/0.4103, allocations: 0.5875 MB / 462.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4103, allocations: 4.031 kB / 462.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.4124, allocations: 1.685 MB / 464.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.4125, allocations: 128.4 kB / 464.7 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.4126, allocations: 8 kB / 464.7 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.413, allocations: 27.95 kB / 464.8 MB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.413, allocations: 27.91 kB / 464.8 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.034e-05/0.4131, allocations: 23.98 kB / 464.8 MB, free: 8.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.674e-05/0.4131, allocations: 91.27 kB / 464.9 MB, free: 8.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4131, allocations: 0 / 464.9 MB, free: 8.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00408/0.4172, allocations: 0.9682 MB / 465.9 MB, free: 7.586 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007831/0.4251, allocations: 3.283 MB / 469.1 MB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.4265, allocations: 0.6277 MB / 469.8 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4265, allocations: 0 / 469.8 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007429/0.4273, allocations: 0.5131 MB / 470.3 MB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/0.428, allocations: 73.31 kB / 470.4 MB, free: 3.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007038/0.4351, allocations: 4.056 MB / 474.4 MB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.4354, allocations: 0.8178 MB / 475.2 MB, free: 14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003957/0.4358, allocations: 148.9 kB / 475.4 MB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.4361, allocations: 135.3 kB / 475.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4361, allocations: 4 kB / 475.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0631/0.4992, allocations: 40.47 MB / 0.5039 GB, free: 5.328 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002845/0.4995, allocations: 208.3 kB / 0.5041 GB, free: 5.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.808/4.307, allocations: 0 / 0.5041 GB, free: 5.07 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches