Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008236/0.0008236, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007608/0.0007608, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8607/0.8607, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.55e-05, allocations: 3.266 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009335/0.00935, allocations: 12.32 MB / 339.6 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009593/0.01894, allocations: 13.62 MB / 353.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.617e-05/0.01901, allocations: 3.938 kB / 353.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.01927, allocations: 71.52 kB / 353.3 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.01953, allocations: 131.1 kB / 353.4 MB, free: 2.859 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008909/0.02844, allocations: 5.997 MB / 359.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.02873, allocations: 354.3 kB / 359.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.02878, allocations: 9.75 kB / 359.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003513/0.02913, allocations: 267 kB / 360 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.02923, allocations: 87.77 kB / 360.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.02925, allocations: 20 kB / 360.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006547/0.0358, allocations: 6.489 MB / 366.6 MB, free: 5.648 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.818e-05/0.03586, allocations: 43.88 kB / 366.7 MB, free: 5.605 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.316e-05/0.03592, allocations: 75.83 kB / 366.7 MB, free: 5.531 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003826/0.03975, allocations: 4.985 MB / 371.7 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.03975, allocations: 4 kB / 371.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.03975, allocations: 0 / 371.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.03975, allocations: 0 / 371.7 MB, free: 0.5312 MB / 330.7 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.001226/0.04098, allocations: 0.9391 MB / 372.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.04102, allocations: 11.98 kB / 372.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.04106, allocations: 62.72 kB / 372.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006572/0.04172, allocations: 176.6 kB / 372.9 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.04197, allocations: 201.5 kB / 373.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.04199, allocations: 16.88 kB / 373.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.04202, allocations: 28.31 kB / 373.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.04355, allocations: 0.9604 MB / 374.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.04356, allocations: 0 / 374.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.04359, allocations: 12 kB / 374.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.04359, allocations: 7.938 kB / 374.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.04514, allocations: 0.9619 MB / 375.1 MB, free: 13.06 MB / 346.7 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.000887/0.04603, allocations: 0.9474 MB / 376 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.04726, allocations: 0.7286 MB / 376.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.04741, allocations: 153.3 kB / 376.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03204/0.07946, allocations: 20.6 MB / 397.5 MB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.07949, allocations: 34.56 kB / 397.6 MB, free: 6.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/0.07949, allocations: 4 kB / 397.6 MB, free: 6.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002761/0.08226, allocations: 1.365 MB / 398.9 MB, free: 5.121 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.08229, allocations: 59.34 kB / 399 MB, free: 5.051 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.923e-05/0.08238, allocations: 125.7 kB / 399.1 MB, free: 4.918 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.08243, allocations: 33.7 kB / 399.1 MB, free: 4.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.137e-05/0.08248, allocations: 112.9 kB / 399.2 MB, free: 4.762 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.08256, allocations: 119 kB / 399.4 MB, free: 4.645 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.08272, allocations: 165.5 kB / 399.5 MB, free: 4.477 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.287e-05/0.08281, allocations: 334.8 kB / 399.9 MB, free: 4.141 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.08318, allocations: 335.8 kB / 400.2 MB, free: 3.812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.08373, allocations: 411.5 kB / 400.6 MB, free: 3.383 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.08453, allocations: 0.7036 MB / 401.3 MB, free: 2.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.08453, allocations: 0 / 401.3 MB, free: 2.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001112/0.08564, allocations: 0.8761 MB / 402.2 MB, free: 1.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.08566, allocations: 7.281 kB / 402.2 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.08567, allocations: 4 kB / 402.2 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.08568, allocations: 4 kB / 402.2 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.08599, allocations: 179.7 kB / 402.4 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.086, allocations: 7.984 kB / 402.4 MB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.08616, allocations: 35.78 kB / 402.4 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.08622, allocations: 63.94 kB / 402.5 MB, free: 1.477 MB / 362.7 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.0001456/0.08636, allocations: 137.8 kB / 402.6 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.081e-05/0.08644, allocations: 19.94 kB / 402.6 MB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004764/0.09121, allocations: 8.507 MB / 411.1 MB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.09123, allocations: 27.95 kB / 411.1 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.09123, allocations: 4.312 kB / 411.2 MB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.09124, allocations: 3.984 kB / 411.2 MB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.09329, allocations: 3.722 MB / 414.9 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.0933, allocations: 3.984 kB / 414.9 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.09358, allocations: 115.7 kB / 415 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.09358, allocations: 0 / 415 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.0936, allocations: 11.98 kB / 415 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.09361, allocations: 0 / 415 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.09361, allocations: 7.938 kB / 415 MB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.09507, allocations: 1.889 MB / 416.9 MB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.09511, allocations: 79.27 kB / 417 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.09515, allocations: 8 kB / 417 MB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.09527, allocations: 12 kB / 417 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.09533, allocations: 39.81 kB / 417 MB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.09536, allocations: 15.98 kB / 417.1 MB, free: 2.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.83e-05/0.09539, allocations: 91.27 kB / 417.1 MB, free: 2.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.09539, allocations: 0 / 417.1 MB, free: 2.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001873/0.09727, allocations: 1.002 MB / 418.1 MB, free: 1.496 MB / 378.7 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.004574/0.1018, allocations: 3.62 MB / 421.8 MB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.103, allocations: 0.8873 MB / 422.7 MB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.103, allocations: 3.938 kB / 422.7 MB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.1034, allocations: 0.5283 MB / 423.2 MB, free: 12.42 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/0.1038, allocations: 96.5 kB / 423.3 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004782/0.1086, allocations: 4.639 MB / 427.9 MB, free: 7.559 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/0.1087, allocations: 251.2 kB / 428.2 MB, free: 7.289 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001251/0.11, allocations: 1.784 MB / 429.9 MB, free: 5.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.1103, allocations: 216.4 kB / 430.2 MB, free: 5.289 MB / 394.7 MB Notification: Performance of SimCode: time 8.51e-07/0.1103, allocations: 0 / 430.2 MB, free: 5.289 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1856/0.296, allocations: 47.22 MB / 477.4 MB, free: 92.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.547, allocations: 14.22 kB / 477.4 MB, free: 92.3 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.386111774481833]