Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",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.0008199/0.00082, allocations: 89.62 kB / 16.65 MB, free: 6.594 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.0008909/0.0008909, allocations: 180 kB / 17.56 MB, free: 6.203 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.218/1.218, allocations: 223.3 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002154/0.0002154, allocations: 8 kB / 301.5 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07859/0.07882, allocations: 50.41 MB / 351.9 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01385/0.09271, allocations: 13.65 MB / 365.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1605/0.2532, allocations: 16.32 MB / 381.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/0.2534, allocations: 1.438 kB / 381.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.2536, allocations: 73.44 kB / 382 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.2539, allocations: 108.9 kB / 382.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01138/0.2653, allocations: 4.717 MB / 386.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.2656, allocations: 368 kB / 387.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.2657, allocations: 13.08 kB / 387.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.2661, allocations: 208.2 kB / 387.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.2662, allocations: 110.8 kB / 387.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.2662, allocations: 8.438 kB / 387.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0111/0.2773, allocations: 6.684 MB / 394.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.217e-05/0.2774, allocations: 39.95 kB / 394.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.2776, allocations: 126.3 kB / 394.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005996/0.2836, allocations: 3.891 MB / 398.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2836, allocations: 1.469 kB / 398.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2836, allocations: 0 / 398.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2836, allocations: 0 / 398.2 MB, free: 4.223 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002825/0.2865, allocations: 0.9491 MB / 399.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2865, allocations: 9.562 kB / 399.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.2866, allocations: 57.84 kB / 399.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/0.2878, allocations: 178.4 kB / 399.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.2881, allocations: 262.2 kB / 399.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.2881, allocations: 20.97 kB / 399.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.2881, allocations: 20.47 kB / 399.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002705/0.2909, allocations: 0.9231 MB / 400.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2909, allocations: 0 / 400.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.2909, allocations: 11.47 kB / 400.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2909, allocations: 3.375 kB / 400.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/0.2937, allocations: 0.9886 MB / 401.6 MB, free: 1.938 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.001144/0.2949, allocations: 1.346 MB / 403 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.2971, allocations: 0.7316 MB / 403.7 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.2973, allocations: 161.9 kB / 403.9 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07088/0.3682, allocations: 37.77 MB / 441.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.3683, allocations: 42.56 kB / 441.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.395e-06/0.3683, allocations: 0 / 441.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004942/0.3732, allocations: 1.376 MB / 443.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.3733, allocations: 55.41 kB / 443.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.3734, allocations: 125.8 kB / 443.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/0.3735, allocations: 29.7 kB / 443.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.3736, allocations: 120.6 kB / 443.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3737, allocations: 113.3 kB / 443.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.412e-05/0.3738, allocations: 33.7 kB / 443.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3739, allocations: 322.8 kB / 443.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005955/0.3745, allocations: 347.8 kB / 444.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.3752, allocations: 407.5 kB / 444.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3764, allocations: 0.7115 MB / 445.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3764, allocations: 4 kB / 445.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001621/0.378, allocations: 0.8836 MB / 446.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.378, allocations: 4 kB / 446.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.378, allocations: 4 kB / 446.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3781, allocations: 7.938 kB / 446.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005935/0.3787, allocations: 175.8 kB / 446.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3787, allocations: 4.25 kB / 446.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.3791, allocations: 40.11 kB / 446.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.3792, allocations: 67.92 kB / 446.5 MB, free: 1.168 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.3794, allocations: 141.7 kB / 446.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.134e-05/0.3795, allocations: 15.81 kB / 446.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007134/0.3866, allocations: 7.985 MB / 454.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.3867, allocations: 27.95 kB / 454.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3867, allocations: 4 kB / 454.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3867, allocations: 7.984 kB / 454.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.3895, allocations: 3.597 MB / 458.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3895, allocations: 0 / 458.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005963/0.3901, allocations: 115.8 kB / 458.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3902, allocations: 0 / 458.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.3902, allocations: 11.94 kB / 458.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.3902, allocations: 7.984 kB / 458.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3902, allocations: 0 / 458.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.3925, allocations: 1.85 MB / 460.2 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.822e-05/0.3926, allocations: 148.1 kB / 460.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.3927, allocations: 7.938 kB / 460.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.393, allocations: 27.98 kB / 460.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.3931, allocations: 31.95 kB / 460.5 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.3931, allocations: 16.86 kB / 460.5 MB, free: 2.871 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.26e-05/0.3932, allocations: 91.27 kB / 460.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3932, allocations: 0 / 460.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003077/0.3963, allocations: 0.976 MB / 461.5 MB, free: 1.805 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007601/0.4039, allocations: 3.442 MB / 465 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.4053, allocations: 0.9184 MB / 465.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4053, allocations: 3.938 kB / 465.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007048/0.4061, allocations: 0.5962 MB / 466.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006262/0.4067, allocations: 87.91 kB / 466.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007492/0.4142, allocations: 4.971 MB / 471.6 MB, free: 7.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.4146, allocations: 0.8614 MB / 472.4 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001829/0.4164, allocations: 1.784 MB / 474.2 MB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004285/0.4168, allocations: 219.3 kB / 474.4 MB, free: 4.828 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4169, allocations: 0 / 474.4 MB, free: 4.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.064/0.4809, allocations: 45 MB / 0.5072 GB, free: 7.918 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/0.4811, allocations: 205.8 kB / 0.5074 GB, free: 7.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.727/4.208, allocations: 0 / 0.5074 GB, free: 7.664 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches