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.001245/0.001246, allocations: 102 kB / 16.5 MB, free: 6.688 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.001261/0.001261, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.215/1.215, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009237/0.0009237, allocations: 50.17 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07537/0.0763, allocations: 49.45 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01484/0.09118, allocations: 14.15 MB / 363.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1514/0.2426, allocations: 16.6 MB / 380.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2427, allocations: 1.375 kB / 380.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.243, allocations: 71.06 kB / 380.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.2433, allocations: 112 kB / 380.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01156/0.2549, allocations: 4.726 MB / 385.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2553, allocations: 359.1 kB / 385.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.2553, allocations: 15.88 kB / 385.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.2557, allocations: 210.7 kB / 385.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.2559, allocations: 102.3 kB / 385.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.2559, allocations: 10.75 kB / 385.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.2663, allocations: 6.693 MB / 392.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.2664, allocations: 36.7 kB / 392.6 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.2665, allocations: 105.4 kB / 392.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004955/0.2715, allocations: 3.903 MB / 396.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2715, allocations: 1.625 kB / 396.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2715, allocations: 0 / 396.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2715, allocations: 3.938 kB / 396.6 MB, free: 4.23 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.001855/0.2734, allocations: 0.9912 MB / 397.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2734, allocations: 8.812 kB / 397.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.2735, allocations: 59.42 kB / 397.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.2748, allocations: 174.5 kB / 397.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.275, allocations: 258.3 kB / 398.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.275, allocations: 18.75 kB / 398.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.039e-05/0.275, allocations: 22.88 kB / 398.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.2779, allocations: 0.912 MB / 399 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2779, allocations: 0 / 399 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.278, allocations: 5.969 kB / 399 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.278, allocations: 8.969 kB / 399 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/0.281, allocations: 0.9759 MB / 400 MB, free: 1.926 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.2821, allocations: 1.345 MB / 401.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.2845, allocations: 0.7233 MB / 402.1 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.2847, allocations: 159.2 kB / 402.2 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06478/0.3495, allocations: 37.41 MB / 439.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.3496, allocations: 34.56 kB / 439.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.3496, allocations: 4 kB / 439.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005212/0.3548, allocations: 1.369 MB / 441.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.3549, allocations: 59.34 kB / 441.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.857e-05/0.355, allocations: 117.8 kB / 441.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.355, allocations: 29.7 kB / 441.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.3551, allocations: 118.8 kB / 441.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.3552, allocations: 113.8 kB / 441.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002701/0.3555, allocations: 165.5 kB / 441.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.3556, allocations: 330.8 kB / 442 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/0.3562, allocations: 327.8 kB / 442.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006694/0.3569, allocations: 411.5 kB / 442.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.3582, allocations: 0.7037 MB / 443.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3582, allocations: 7.875 kB / 443.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00175/0.3599, allocations: 0.8759 MB / 444.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.36, allocations: 4 kB / 444.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.36, allocations: 4 kB / 444.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.36, allocations: 7.938 kB / 444.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/0.3607, allocations: 175.7 kB / 444.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3607, allocations: 4 kB / 444.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.3611, allocations: 39.92 kB / 444.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.3612, allocations: 67.92 kB / 444.6 MB, free: 1.484 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.0002015/0.3614, allocations: 137.7 kB / 444.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.3616, allocations: 15.81 kB / 444.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006584/0.3681, allocations: 7.978 MB / 452.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.3682, allocations: 27.95 kB / 452.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3682, allocations: 0 / 452.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3682, allocations: 0 / 452.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.3708, allocations: 3.604 MB / 456.3 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.3708, allocations: 0 / 456.3 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006628/0.3715, allocations: 111.8 kB / 456.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3715, allocations: 4 kB / 456.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.3716, allocations: 11.94 kB / 456.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3716, allocations: 4 kB / 456.5 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3716, allocations: 0 / 456.5 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.3737, allocations: 1.839 MB / 458.3 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.707e-05/0.3738, allocations: 140.2 kB / 458.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.3739, allocations: 11.94 kB / 458.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/0.3742, allocations: 27.92 kB / 458.5 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.367e-05/0.3743, allocations: 31.95 kB / 458.5 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.3744, allocations: 15.98 kB / 458.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.463e-05/0.3744, allocations: 91.27 kB / 458.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3744, allocations: 0 / 458.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002723/0.3771, allocations: 0.976 MB / 459.6 MB, free: 2.152 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.006908/0.3841, allocations: 3.438 MB / 463 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.3854, allocations: 0.9032 MB / 463.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3855, allocations: 4.125 kB / 463.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.3861, allocations: 0.588 MB / 464.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006112/0.3868, allocations: 83.17 kB / 464.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007137/0.3939, allocations: 4.899 MB / 469.5 MB, free: 8.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.3943, allocations: 0.8614 MB / 470.4 MB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001701/0.396, allocations: 1.784 MB / 472.1 MB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/0.3964, allocations: 215.3 kB / 472.4 MB, free: 5.277 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3964, allocations: 0 / 472.4 MB, free: 5.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6673/1.064, allocations: 45.16 MB / 0.5054 GB, free: 8.176 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/1.064, allocations: 210.6 kB / 0.5056 GB, free: 7.918 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.92/4.984, allocations: 7.812 kB / 0.5056 GB, free: 7.914 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