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.001137/0.001137, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.00102/0.00102, allocations: 186 kB / 17.55 MB, free: 5.934 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.313/1.313, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 46.33 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.0877, allocations: 49.44 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01584/0.1036, allocations: 13.04 MB / 362.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1718/0.2754, allocations: 11.59 MB / 374.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.2756, allocations: 5.531 kB / 374.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003066/0.2759, allocations: 65.23 kB / 374.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.2762, allocations: 82.84 kB / 374.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0131/0.2893, allocations: 4.462 MB / 378.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.2897, allocations: 235 kB / 379.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.278e-05/0.2897, allocations: 8.25 kB / 379.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000403/0.2901, allocations: 193 kB / 379.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.2903, allocations: 70.97 kB / 379.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.2903, allocations: 7.781 kB / 379.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.3033, allocations: 6.888 MB / 386.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.614e-05/0.3034, allocations: 26.38 kB / 386.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.3036, allocations: 79.61 kB / 386.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006559/0.3101, allocations: 3.887 MB / 390.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3102, allocations: 0 / 390.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3102, allocations: 0 / 390.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.3102, allocations: 0 / 390.3 MB, free: 5.758 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.004513/0.3147, allocations: 1.148 MB / 391.4 MB, free: 4.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3148, allocations: 9.969 kB / 391.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.935e-05/0.3148, allocations: 47.95 kB / 391.5 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005233/0.3153, allocations: 50.45 kB / 391.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.3155, allocations: 215.2 kB / 391.8 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.3156, allocations: 19.88 kB / 391.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.3156, allocations: 17.41 kB / 391.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3168, allocations: 381.7 kB / 392.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3169, allocations: 1.375 kB / 392.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.3169, allocations: 6.75 kB / 392.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3169, allocations: 4.125 kB / 392.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.3182, allocations: 357 kB / 392.5 MB, free: 4.18 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.001112/0.3194, allocations: 1.193 MB / 393.7 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007702/0.3202, allocations: 278.1 kB / 394 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.3204, allocations: 111.2 kB / 394.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09348/0.4139, allocations: 47.46 MB / 441.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.414, allocations: 38.5 kB / 441.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/0.414, allocations: 0 / 441.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007176/0.4212, allocations: 1.574 MB / 443.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.4213, allocations: 114.9 kB / 443.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.4214, allocations: 120 kB / 443.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.723e-05/0.4214, allocations: 33.64 kB / 443.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.4216, allocations: 104.5 kB / 443.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.4217, allocations: 116.8 kB / 443.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.4219, allocations: 77.53 kB / 443.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.422, allocations: 322.8 kB / 444 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.4224, allocations: 135.9 kB / 444.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.4228, allocations: 194.7 kB / 444.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008695/0.4237, allocations: 346.6 kB / 444.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.4237, allocations: 4 kB / 444.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001049/0.4248, allocations: 429.9 kB / 445.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4248, allocations: 4 kB / 445.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.4248, allocations: 0 / 445.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/0.4251, allocations: 37.06 kB / 445.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.4255, allocations: 95.8 kB / 445.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005013/0.4261, allocations: 0.5484 MB / 445.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.4264, allocations: 24.11 kB / 445.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.4264, allocations: 19.98 kB / 445.9 MB, free: 11.49 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.0001408/0.4266, allocations: 133.7 kB / 446 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.595e-05/0.4267, allocations: 19.81 kB / 446 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.4288, allocations: 1.447 MB / 447.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.4289, allocations: 23.97 kB / 447.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4289, allocations: 0 / 447.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.4289, allocations: 4.031 kB / 447.5 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.4319, allocations: 1.985 MB / 449.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.4319, allocations: 3.984 kB / 449.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.4323, allocations: 76 kB / 449.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002989/0.4327, allocations: 80.69 kB / 449.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.4327, allocations: 12 kB / 449.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003608/0.4331, allocations: 0.5952 MB / 450.2 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4331, allocations: 3.125 kB / 450.2 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.4354, allocations: 1.69 MB / 451.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.353e-05/0.4355, allocations: 124.5 kB / 452 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.039e-05/0.4355, allocations: 12.03 kB / 452 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.436, allocations: 27.92 kB / 452.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.4361, allocations: 31.95 kB / 452.1 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.4361, allocations: 8 kB / 452.1 MB, free: 5.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.207e-05/0.4362, allocations: 95.2 kB / 452.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4362, allocations: 4 kB / 452.2 MB, free: 4.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003459/0.4397, allocations: 0.9644 MB / 453.2 MB, free: 4 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.008318/0.448, allocations: 3.276 MB / 456.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.4495, allocations: 0.6315 MB / 457.1 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4495, allocations: 0 / 457.1 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000861/0.4504, allocations: 0.5135 MB / 457.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.4511, allocations: 77.7 kB / 457.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007561/0.4587, allocations: 4.071 MB / 461.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.4591, allocations: 0.8178 MB / 462.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004047/0.4595, allocations: 137.2 kB / 462.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.4598, allocations: 131.4 kB / 462.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4598, allocations: 0 / 462.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06866/0.5285, allocations: 40.4 MB / 0.4914 GB, free: 1.949 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.5287, allocations: 212 kB / 0.4916 GB, free: 1.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.938/4.467, allocations: 0 / 0.4916 GB, free: 1.699 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