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.0013/0.0013, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 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.001443/0.001443, allocations: 210.7 kB / 24.53 MB, free: 4.07 MB / 14.72 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 1.357/1.357, allocations: 230.5 MB / 258.2 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 63.91 kB / 379.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2336, allocations: 53.41 MB / 432.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0163/0.2499, allocations: 13.56 MB / 446.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.2678, allocations: 15.66 MB / 462 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.268, allocations: 0 / 462 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.2683, allocations: 83.53 kB / 462.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.2686, allocations: 111.2 kB / 462.2 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0142/0.2828, allocations: 5.998 MB / 468.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.2834, allocations: 346.5 kB / 468.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.206e-05/0.2834, allocations: 5.812 kB / 468.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.2839, allocations: 239 kB / 468.8 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.2841, allocations: 111.6 kB / 468.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.2841, allocations: 12 kB / 468.9 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01259/0.2967, allocations: 6.79 MB / 475.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.109e-05/0.2968, allocations: 43.83 kB / 475.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.297, allocations: 107.5 kB / 475.8 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007746/0.3047, allocations: 3.913 MB / 479.8 MB, free: 7.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3047, allocations: 0 / 479.8 MB, free: 7.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3047, allocations: 0 / 479.8 MB, free: 7.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.3047, allocations: 4 kB / 479.8 MB, free: 7.332 MB / 382.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.002455/0.3072, allocations: 0.9506 MB / 480.7 MB, free: 6.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3072, allocations: 8.031 kB / 480.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.176e-05/0.3072, allocations: 8.625 kB / 480.7 MB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.693e-05/0.3073, allocations: 50.73 kB / 480.8 MB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.3086, allocations: 184.5 kB / 481 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.3089, allocations: 202.2 kB / 481.2 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.309, allocations: 24.55 kB / 481.2 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.309, allocations: 16 kB / 481.2 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.312, allocations: 0.905 MB / 482.1 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.312, allocations: 4 kB / 482.1 MB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.3121, allocations: 12 kB / 482.1 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3121, allocations: 4 kB / 482.1 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003122/0.3152, allocations: 0.9695 MB / 483.1 MB, free: 3.918 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.001689/0.3169, allocations: 1.311 MB / 484.4 MB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.3194, allocations: 0.7402 MB / 485.1 MB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.3197, allocations: 149.4 kB / 485.3 MB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07077/0.3905, allocations: 20.54 MB / 0.494 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.3905, allocations: 42.56 kB / 0.494 GB, free: 12.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.964e-06/0.3905, allocations: 0 / 0.494 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005229/0.3957, allocations: 1.365 MB / 0.4953 GB, free: 11.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3958, allocations: 55.41 kB / 0.4954 GB, free: 11.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.3959, allocations: 121.7 kB / 0.4955 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.171e-05/0.396, allocations: 29.7 kB / 0.4955 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.3961, allocations: 128.8 kB / 0.4957 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3962, allocations: 122.9 kB / 0.4958 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.3965, allocations: 161.6 kB / 0.4959 GB, free: 10.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3967, allocations: 322.8 kB / 0.4962 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000644/0.3973, allocations: 339.6 kB / 0.4966 GB, free: 10.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007323/0.398, allocations: 411.5 kB / 0.497 GB, free: 9.863 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.3994, allocations: 0.7036 MB / 0.4976 GB, free: 9.133 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3994, allocations: 0 / 0.4976 GB, free: 9.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001888/0.4013, allocations: 0.8759 MB / 0.4985 GB, free: 8.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4013, allocations: 15.86 kB / 0.4985 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4013, allocations: 4 kB / 0.4985 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.4014, allocations: 4 kB / 0.4985 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.402, allocations: 175.8 kB / 0.4987 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.402, allocations: 4 kB / 0.4987 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.4024, allocations: 35.83 kB / 0.4987 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.4025, allocations: 68.16 kB / 0.4988 GB, free: 7.949 MB / 414.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.0002579/0.4027, allocations: 133.8 kB / 0.4989 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.4029, allocations: 19.84 kB / 0.4989 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00825/0.4111, allocations: 8.505 MB / 0.5073 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.4112, allocations: 31.95 kB / 0.5073 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4112, allocations: 0 / 0.5073 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.4112, allocations: 3.984 kB / 0.5073 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.4146, allocations: 3.767 MB / 0.511 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.4146, allocations: 4 kB / 0.511 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/0.4152, allocations: 107.8 kB / 0.5111 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.4152, allocations: 8.312 kB / 0.5111 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.4153, allocations: 15.98 kB / 0.5111 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4153, allocations: 0 / 0.5111 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4153, allocations: 0 / 0.5111 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.4178, allocations: 1.878 MB / 0.5129 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.891e-05/0.4179, allocations: 71.33 kB / 0.513 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.862e-05/0.4179, allocations: 11.98 kB / 0.513 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.4182, allocations: 12 kB / 0.513 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.753e-05/0.4183, allocations: 39.94 kB / 0.5131 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.4184, allocations: 15.98 kB / 0.5131 GB, free: 9.027 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.564e-05/0.4184, allocations: 91.27 kB / 0.5132 GB, free: 8.938 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4184, allocations: 0 / 0.5132 GB, free: 8.938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002883/0.4213, allocations: 1.002 MB / 0.5141 GB, free: 7.934 MB / 430.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.00711/0.4284, allocations: 3.486 MB / 0.5175 GB, free: 4.418 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.43, allocations: 0.8912 MB / 0.5184 GB, free: 3.527 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4301, allocations: 0 / 0.5184 GB, free: 3.527 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.4308, allocations: 0.5249 MB / 0.5189 GB, free: 3.004 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006353/0.4314, allocations: 82.89 kB / 0.519 GB, free: 2.926 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007787/0.4392, allocations: 4.713 MB / 0.5236 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.4396, allocations: 0.8575 MB / 0.5244 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001933/0.4416, allocations: 1.78 MB / 0.5262 GB, free: 11.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/0.442, allocations: 219.3 kB / 0.5264 GB, free: 11.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.442, allocations: 0 / 0.5264 GB, free: 11.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/0.6851, allocations: 46.88 MB / 0.5722 GB, free: 77.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.17, allocations: 7.156 kB / 0.5722 GB, free: 77.21 MB / 446.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 17.01508428499801]