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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 47.92 kB / 372 MB, free: 8.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2165, allocations: 52.19 MB / 424.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01576/0.2322, allocations: 12.2 MB / 436.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.2495, allocations: 13.62 MB / 450 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.2496, allocations: 3.938 kB / 450 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.25, allocations: 71.58 kB / 450.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000342/0.2503, allocations: 119.2 kB / 450.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01495/0.2653, allocations: 5.924 MB / 456.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004701/0.2657, allocations: 346.5 kB / 456.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.272e-05/0.2658, allocations: 13.8 kB / 456.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004383/0.2662, allocations: 219 kB / 456.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.2664, allocations: 107.6 kB / 456.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.2664, allocations: 16 kB / 456.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01186/0.2783, allocations: 6.72 MB / 463.5 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.925e-05/0.2784, allocations: 47.83 kB / 463.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.2785, allocations: 83.72 kB / 463.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008147/0.2867, allocations: 3.913 MB / 467.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.2867, allocations: 0 / 467.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2867, allocations: 0 / 467.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2867, allocations: 0 / 467.5 MB, free: 2.785 MB / 366.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.002545/0.2892, allocations: 0.939 MB / 468.5 MB, free: 1.812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2893, allocations: 8.031 kB / 468.5 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.2e-05/0.2893, allocations: 4.625 kB / 468.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.6e-05/0.2894, allocations: 58.73 kB / 468.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/0.2908, allocations: 176.6 kB / 468.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.2911, allocations: 202.1 kB / 468.9 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.2911, allocations: 24.56 kB / 468.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.2912, allocations: 20 kB / 469 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003354/0.2945, allocations: 0.9553 MB / 469.9 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2945, allocations: 3.938 kB / 469.9 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.2946, allocations: 8 kB / 469.9 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2946, allocations: 4 kB / 469.9 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003433/0.298, allocations: 0.9734 MB / 470.9 MB, free: 15.32 MB / 382.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.001525/0.2995, allocations: 0.955 MB / 471.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.3023, allocations: 0.7169 MB / 472.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.3026, allocations: 149.6 kB / 472.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06565/0.3683, allocations: 19.73 MB / 492.5 MB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.3683, allocations: 38.56 kB / 492.5 MB, free: 9.633 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.474e-06/0.3683, allocations: 0 / 492.5 MB, free: 9.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005909/0.3742, allocations: 1.372 MB / 493.9 MB, free: 8.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3743, allocations: 55.41 kB / 493.9 MB, free: 8.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.3744, allocations: 117.8 kB / 494 MB, free: 8.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.209e-05/0.3745, allocations: 33.7 kB / 494.1 MB, free: 8.023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.97e-05/0.3746, allocations: 116.8 kB / 494.2 MB, free: 7.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.3747, allocations: 119 kB / 494.3 MB, free: 7.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.3751, allocations: 169.5 kB / 494.5 MB, free: 7.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3752, allocations: 326.8 kB / 494.8 MB, free: 7.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006861/0.3759, allocations: 335.8 kB / 495.1 MB, free: 6.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007796/0.3767, allocations: 415.4 kB / 495.5 MB, free: 6.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.3781, allocations: 0.7075 MB / 496.2 MB, free: 5.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3781, allocations: 0 / 496.2 MB, free: 5.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001913/0.38, allocations: 0.8759 MB / 497.1 MB, free: 4.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.38, allocations: 7.938 kB / 497.1 MB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3801, allocations: 4 kB / 497.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3801, allocations: 4 kB / 497.1 MB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007005/0.3808, allocations: 179.8 kB / 497.3 MB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.3808, allocations: 4 kB / 497.3 MB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.3812, allocations: 27.84 kB / 497.3 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.3813, allocations: 67.92 kB / 497.4 MB, free: 4.621 MB / 398.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.0002453/0.3815, allocations: 141.9 kB / 497.5 MB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3817, allocations: 23.84 kB / 497.6 MB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008675/0.3904, allocations: 8.498 MB / 0.4942 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/0.3904, allocations: 27.95 kB / 0.4942 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3904, allocations: 7.938 kB / 0.4942 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3904, allocations: 3.984 kB / 0.4942 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.3939, allocations: 3.728 MB / 0.4979 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.3939, allocations: 0 / 0.4979 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006968/0.3946, allocations: 115.8 kB / 0.498 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.3946, allocations: 3.938 kB / 0.498 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.3947, allocations: 11.98 kB / 0.498 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.3947, allocations: 0 / 0.498 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3947, allocations: 4 kB / 0.498 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.3973, allocations: 1.889 MB / 0.4998 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.108e-05/0.3974, allocations: 71.27 kB / 0.4999 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.3974, allocations: 8 kB / 0.4999 GB, free: 5.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.3977, allocations: 19.98 kB / 0.4999 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/0.3978, allocations: 27.94 kB / 0.5 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.979e-05/0.3979, allocations: 15.98 kB / 0.5 GB, free: 5.727 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.687e-05/0.398, allocations: 87.28 kB / 0.5001 GB, free: 5.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.398, allocations: 0 / 0.5001 GB, free: 5.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002946/0.4009, allocations: 0.9902 MB / 0.501 GB, free: 4.648 MB / 414.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.007527/0.4084, allocations: 3.479 MB / 0.5044 GB, free: 1.141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.4101, allocations: 0.8915 MB / 0.5053 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4101, allocations: 0 / 0.5053 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007729/0.4108, allocations: 0.5288 MB / 0.5058 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.4115, allocations: 90.98 kB / 0.5059 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008056/0.4195, allocations: 4.704 MB / 0.5105 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.4198, allocations: 255.2 kB / 0.5107 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001986/0.4218, allocations: 1.784 MB / 0.5125 GB, free: 8.746 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004877/0.4222, allocations: 227.2 kB / 0.5127 GB, free: 8.523 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4222, allocations: 0 / 0.5127 GB, free: 8.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2476/0.6698, allocations: 46.89 MB / 0.5585 GB, free: 88.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.26, allocations: 13.02 kB / 0.5585 GB, free: 88.96 MB / 446.1 MB " [Timeout remaining time 646] (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 --stepSize=0.01 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.105671216966584]