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.001125/0.001125, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.0009675/0.0009675, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.334/1.334, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 51.38 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08728, allocations: 49.44 MB / 350.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01429/0.1016, allocations: 12.9 MB / 363.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1757/0.2773, allocations: 11.53 MB / 374.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.2775, allocations: 1.062 kB / 374.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004535/0.278, allocations: 70.22 kB / 374.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.2784, allocations: 89.92 kB / 374.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01465/0.2931, allocations: 5.072 MB / 379.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.2934, allocations: 235.3 kB / 380 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.2934, allocations: 8.484 kB / 380.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005058/0.2939, allocations: 192.8 kB / 380.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.2941, allocations: 78.38 kB / 380.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.841e-05/0.2941, allocations: 7.125 kB / 380.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.3068, allocations: 6.824 MB / 387.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.3069, allocations: 33.66 kB / 387.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.428e-05/0.307, allocations: 71.52 kB / 387.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007294/0.3143, allocations: 3.878 MB / 391.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.3143, allocations: 0.8438 kB / 391.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.3143, allocations: 0 / 391.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.028e-05/0.3144, allocations: 1.125 kB / 391.1 MB, free: 5.039 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.005339/0.3197, allocations: 1.137 MB / 392.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.086e-05/0.3198, allocations: 13.88 kB / 392.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.909e-05/0.3199, allocations: 51.11 kB / 392.3 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000445/0.3204, allocations: 54.8 kB / 392.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.3206, allocations: 216.1 kB / 392.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.3206, allocations: 11.16 kB / 392.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.3206, allocations: 21.88 kB / 392.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.3219, allocations: 385.8 kB / 393 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3219, allocations: 5.344 kB / 393 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.3219, allocations: 6.875 kB / 393 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.3219, allocations: 3.656 kB / 393 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.3234, allocations: 357 kB / 393.4 MB, free: 3.457 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.001172/0.3246, allocations: 1.194 MB / 394.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008576/0.3254, allocations: 280.7 kB / 394.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003424/0.3258, allocations: 109.8 kB / 394.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09613/0.4219, allocations: 47.45 MB / 442.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.422, allocations: 30.56 kB / 442.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.422, allocations: 0 / 442.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006963/0.4289, allocations: 1.589 MB / 444 MB, free: 13.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.429, allocations: 106.8 kB / 444.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/0.4291, allocations: 121.8 kB / 444.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.4291, allocations: 41.95 kB / 444.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.4292, allocations: 104.5 kB / 444.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.849e-05/0.4293, allocations: 113.9 kB / 444.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.4294, allocations: 73.59 kB / 444.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4295, allocations: 330.8 kB / 444.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.43, allocations: 135.9 kB / 445 MB, free: 12.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.4304, allocations: 195.2 kB / 445.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.4312, allocations: 360 kB / 445.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4312, allocations: 0 / 445.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001056/0.4323, allocations: 422 kB / 446 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.4323, allocations: 4 kB / 446 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4323, allocations: 4 kB / 446 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002972/0.4326, allocations: 37.05 kB / 446 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.4331, allocations: 94.56 kB / 446.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003167/0.4334, allocations: 0.5522 MB / 446.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.4337, allocations: 20.06 kB / 446.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.4337, allocations: 22.16 kB / 446.7 MB, free: 10.76 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.0002377/0.434, allocations: 133.7 kB / 446.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.4341, allocations: 19.89 kB / 446.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.4363, allocations: 1.447 MB / 448.3 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.4363, allocations: 23.97 kB / 448.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4363, allocations: 0 / 448.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4363, allocations: 3.984 kB / 448.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/0.4392, allocations: 1.977 MB / 450.3 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4393, allocations: 1.125 kB / 450.3 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.4397, allocations: 79.86 kB / 450.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002849/0.44, allocations: 76.83 kB / 450.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.4401, allocations: 15.98 kB / 450.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004132/0.4405, allocations: 0.5835 MB / 451.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4405, allocations: 4.031 kB / 451.1 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.4427, allocations: 1.685 MB / 452.7 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.72e-05/0.4428, allocations: 132.4 kB / 452.9 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.4429, allocations: 16 kB / 452.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.4433, allocations: 27.92 kB / 452.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.4434, allocations: 27.95 kB / 452.9 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.4434, allocations: 19.98 kB / 453 MB, free: 4.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.587e-05/0.4435, allocations: 95.14 kB / 453.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4435, allocations: 0 / 453.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00268/0.4462, allocations: 0.9527 MB / 454 MB, free: 3.289 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.00661/0.4528, allocations: 3.281 MB / 457.3 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.4543, allocations: 0.6217 MB / 457.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.4544, allocations: 4.438 kB / 457.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.4552, allocations: 0.5085 MB / 458.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007336/0.4559, allocations: 76.3 kB / 458.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006645/0.4626, allocations: 3.901 MB / 462.4 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.4629, allocations: 0.8139 MB / 463.2 MB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004374/0.4634, allocations: 141.9 kB / 463.4 MB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.4636, allocations: 135.4 kB / 463.5 MB, free: 9.699 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4636, allocations: 0 / 463.5 MB, free: 9.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.141/1.604, allocations: 40.54 MB / 0.4922 GB, free: 1.219 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/16.38, allocations: 3.812 kB / 0.4922 GB, free: 1.219 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