Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.004821/0.004821, allocations: 101 kB / 21.96 MB, free: 5.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 214 kB / 25.25 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 51.92 kB / 348.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.239, allocations: 49.15 MB / 397.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01321/0.2522, allocations: 12.21 MB / 410.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01823/0.2705, allocations: 13.6 MB / 423.8 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.2707, allocations: 5.25 kB / 423.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000399/0.2711, allocations: 77.12 kB / 423.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.2715, allocations: 104.3 kB / 423.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01832/0.2899, allocations: 5.918 MB / 429.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000585/0.2904, allocations: 345.4 kB / 430.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.227e-05/0.2905, allocations: 7.625 kB / 430.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005909/0.2911, allocations: 215.5 kB / 430.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.2914, allocations: 107.6 kB / 430.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.2914, allocations: 12 kB / 430.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01351/0.3049, allocations: 6.72 MB / 437.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.305, allocations: 43.83 kB / 437.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.3052, allocations: 95.59 kB / 437.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008955/0.3142, allocations: 3.894 MB / 441.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3142, allocations: 0 / 441.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3142, allocations: 4 kB / 441.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.3142, allocations: 0 / 441.3 MB, free: 7.438 MB / 350.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.002694/0.3169, allocations: 0.9351 MB / 442.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3169, allocations: 11.98 kB / 442.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.205e-05/0.3169, allocations: 12.62 kB / 442.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.039e-05/0.317, allocations: 58.73 kB / 442.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.3184, allocations: 172.6 kB / 442.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.3188, allocations: 198.2 kB / 442.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.3188, allocations: 20.56 kB / 442.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.3189, allocations: 27.95 kB / 442.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00326/0.3221, allocations: 0.9552 MB / 443.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3222, allocations: 4 kB / 443.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.3222, allocations: 8 kB / 443.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.3222, allocations: 8 kB / 443.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003399/0.3256, allocations: 0.9772 MB / 444.7 MB, free: 3.957 MB / 350.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.001505/0.3271, allocations: 0.943 MB / 445.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.3298, allocations: 0.7205 MB / 446.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.3301, allocations: 148.8 kB / 446.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06728/0.3974, allocations: 19.72 MB / 466.2 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.3974, allocations: 38.56 kB / 466.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 4.81e-06/0.3975, allocations: 3.984 kB / 466.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005635/0.4031, allocations: 1.368 MB / 467.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.4031, allocations: 55.41 kB / 467.7 MB, free: 12.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.4033, allocations: 121.8 kB / 467.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.571e-05/0.4034, allocations: 29.7 kB / 467.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.4034, allocations: 112.9 kB / 467.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.4036, allocations: 127 kB / 468 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.4039, allocations: 157.6 kB / 468.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4041, allocations: 330.8 kB / 468.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006858/0.4048, allocations: 331.8 kB / 468.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007667/0.4055, allocations: 415.2 kB / 469.3 MB, free: 11.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.4069, allocations: 0.7037 MB / 470 MB, free: 10.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4069, allocations: 0 / 470 MB, free: 10.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002012/0.4089, allocations: 0.8798 MB / 470.8 MB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.409, allocations: 7.938 kB / 470.8 MB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.409, allocations: 4 kB / 470.8 MB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.409, allocations: 4 kB / 470.8 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007039/0.4097, allocations: 175.7 kB / 471 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.4097, allocations: 4 kB / 471 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.4101, allocations: 35.77 kB / 471.1 MB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.4102, allocations: 64.31 kB / 471.1 MB, free: 9.285 MB / 382.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.0002662/0.4105, allocations: 145.9 kB / 471.3 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.4106, allocations: 19.84 kB / 471.3 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00853/0.4192, allocations: 8.493 MB / 479.8 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.455e-05/0.4192, allocations: 27.95 kB / 479.8 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4192, allocations: 0 / 479.8 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.4192, allocations: 7.984 kB / 479.8 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.4226, allocations: 3.724 MB / 483.5 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4226, allocations: 0 / 483.5 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007002/0.4233, allocations: 111.8 kB / 483.6 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.4233, allocations: 3.938 kB / 483.7 MB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-05/0.4234, allocations: 15.98 kB / 483.7 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.4234, allocations: 4 kB / 483.7 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4234, allocations: 0 / 483.7 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/0.426, allocations: 1.886 MB / 485.6 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/0.426, allocations: 79.16 kB / 485.6 MB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.4261, allocations: 8 kB / 485.6 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.4264, allocations: 16 kB / 485.7 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.4265, allocations: 23.94 kB / 485.7 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.493e-05/0.4265, allocations: 19.98 kB / 485.7 MB, free: 10.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.247e-05/0.4266, allocations: 95.2 kB / 485.8 MB, free: 10.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4266, allocations: 0 / 485.8 MB, free: 10.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002586/0.4292, allocations: 0.9825 MB / 486.8 MB, free: 9.324 MB / 398.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.007498/0.4367, allocations: 3.467 MB / 490.2 MB, free: 5.828 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.4385, allocations: 0.8915 MB / 491.1 MB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4385, allocations: 0 / 491.1 MB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008152/0.4393, allocations: 0.5249 MB / 491.7 MB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006793/0.44, allocations: 87.86 kB / 491.7 MB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/0.4488, allocations: 4.687 MB / 496.4 MB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.4491, allocations: 255.2 kB / 496.7 MB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002095/0.4512, allocations: 1.783 MB / 498.5 MB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005376/0.4517, allocations: 219.3 kB / 498.7 MB, free: 13.23 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4517, allocations: 0 / 498.7 MB, free: 13.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08671/0.5384, allocations: 46.86 MB / 0.5328 GB, free: 14.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.9, allocations: 4.062 kB / 0.5328 GB, free: 14.12 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.687053097994067]