Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",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.001303/0.001303, allocations: 113 kB / 16.51 MB, free: 6.707 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.001276/0.001277, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.262/1.262, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 46.77 kB / 300 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.0838, allocations: 49.44 MB / 349.5 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01654/0.1004, allocations: 13.74 MB / 363.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1673/0.2677, allocations: 12.47 MB / 375.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.343e-05/0.2678, allocations: 1.188 kB / 375.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.2682, allocations: 59.92 kB / 375.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.2684, allocations: 81.78 kB / 375.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.012/0.2804, allocations: 4.011 MB / 379.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.2808, allocations: 269.7 kB / 380.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.024e-05/0.2808, allocations: 13.05 kB / 380.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003843/0.2812, allocations: 189.5 kB / 380.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2814, allocations: 71.77 kB / 380.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.2814, allocations: 4.406 kB / 380.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01249/0.2939, allocations: 6.917 MB / 387.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.828e-05/0.294, allocations: 23.39 kB / 387.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2942, allocations: 62.69 kB / 387.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008494/0.3027, allocations: 3.893 MB / 391.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3027, allocations: 0 / 391.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3027, allocations: 0 / 391.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3027, allocations: 0 / 391.3 MB, free: 5.797 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.00548/0.3082, allocations: 1.14 MB / 392.4 MB, free: 5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3083, allocations: 12.81 kB / 392.4 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.784e-05/0.3083, allocations: 48.27 kB / 392.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005126/0.3089, allocations: 54.98 kB / 392.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.3091, allocations: 216.3 kB / 392.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.3092, allocations: 11.47 kB / 392.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.3092, allocations: 21.06 kB / 392.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.3105, allocations: 386.5 kB / 393.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3105, allocations: 3.469 kB / 393.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.3105, allocations: 6.906 kB / 393.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3105, allocations: 2.844 kB / 393.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.312, allocations: 362.2 kB / 393.5 MB, free: 4.215 MB / 302.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.001241/0.3133, allocations: 1.189 MB / 394.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008323/0.3141, allocations: 275.2 kB / 395 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.3144, allocations: 113.7 kB / 395.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08985/0.4043, allocations: 47.46 MB / 442.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.4044, allocations: 38.56 kB / 442.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.494e-06/0.4044, allocations: 0 / 442.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007085/0.4115, allocations: 1.574 MB / 444.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.4115, allocations: 114.8 kB / 444.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.501e-05/0.4116, allocations: 109.8 kB / 444.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.4117, allocations: 34.08 kB / 444.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.4118, allocations: 108.5 kB / 444.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.4119, allocations: 121.3 kB / 444.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.412, allocations: 65.59 kB / 444.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.4121, allocations: 330.8 kB / 445 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003992/0.4125, allocations: 131.9 kB / 445.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.4129, allocations: 201 kB / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008081/0.4138, allocations: 354.5 kB / 445.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.4138, allocations: 4 kB / 445.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001074/0.4148, allocations: 418 kB / 446.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4149, allocations: 8 kB / 446.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.4149, allocations: 0 / 446.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/0.4151, allocations: 36.83 kB / 446.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.4156, allocations: 92.03 kB / 446.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000347/0.416, allocations: 0.5522 MB / 446.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.4163, allocations: 24 kB / 446.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.4163, allocations: 16 kB / 446.8 MB, free: 11.5 MB / 366.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.0001395/0.4165, allocations: 137.9 kB / 447 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4166, allocations: 19.8 kB / 447 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.4187, allocations: 1.451 MB / 448.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.451e-05/0.4187, allocations: 27.91 kB / 448.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.4188, allocations: 0 / 448.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4188, allocations: 3.984 kB / 448.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002847/0.4216, allocations: 1.985 MB / 450.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4216, allocations: 0 / 450.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004566/0.4221, allocations: 79.86 kB / 450.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003292/0.4224, allocations: 72.83 kB / 450.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.4225, allocations: 19.98 kB / 450.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003401/0.4228, allocations: 0.5813 MB / 451.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4229, allocations: 7.969 kB / 451.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.425, allocations: 1.685 MB / 452.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.4251, allocations: 128.5 kB / 453 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.4251, allocations: 12 kB / 453 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/0.4255, allocations: 23.92 kB / 453.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.4256, allocations: 39.89 kB / 453.1 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.344e-05/0.4257, allocations: 11.98 kB / 453.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.767e-05/0.4257, allocations: 95.2 kB / 453.2 MB, free: 4.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4257, allocations: 0 / 453.2 MB, free: 4.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002935/0.4287, allocations: 0.9565 MB / 454.2 MB, free: 4.023 MB / 366.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.007434/0.4361, allocations: 3.281 MB / 457.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.4374, allocations: 0.6118 MB / 458 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4374, allocations: 0 / 458 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008058/0.4383, allocations: 0.5146 MB / 458.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.439, allocations: 79.86 kB / 458.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007155/0.4462, allocations: 4.069 MB / 462.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.4467, allocations: 0.8255 MB / 463.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.4471, allocations: 129.8 kB / 463.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.4473, allocations: 131.4 kB / 463.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4473, allocations: 0 / 463.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06067/0.508, allocations: 40.06 MB / 0.492 GB, free: 2.289 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.5082, allocations: 207.6 kB / 0.4922 GB, free: 2.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.809/4.317, allocations: 0 / 0.4922 GB, free: 2.039 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches