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.001734/0.001734, allocations: 131.4 kB / 17.79 MB, free: 5.242 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.002072/0.002072, allocations: 211.6 kB / 20.75 MB, free: 2.293 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.471/1.471, allocations: 230.4 MB / 254 MB, free: 15.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="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 0.00284/0.00284, allocations: 67.89 kB / 373.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1152, allocations: 53.37 MB / 427.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2035/0.3188, allocations: 13.5 MB / 440.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.3364, allocations: 15.61 MB / 456.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.3366, allocations: 5.281 kB / 456.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003789/0.337, allocations: 82.53 kB / 456.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003473/0.3373, allocations: 112 kB / 456.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01796/0.3553, allocations: 5.972 MB / 462.5 MB, free: 5.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000512/0.3558, allocations: 346.9 kB / 462.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.3558, allocations: 12.55 kB / 462.8 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004612/0.3563, allocations: 239 kB / 463 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.3565, allocations: 105.4 kB / 463.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.3565, allocations: 13.72 kB / 463.2 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01371/0.3702, allocations: 6.776 MB / 469.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3703, allocations: 44.98 kB / 470 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.3705, allocations: 100.5 kB / 470.1 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009855/0.3804, allocations: 3.921 MB / 474 MB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3804, allocations: 1.125 kB / 474 MB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3804, allocations: 0 / 474 MB, free: 15.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3804, allocations: 0 / 474 MB, free: 15.41 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.003585/0.384, allocations: 1.028 MB / 475 MB, free: 14.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.384, allocations: 10.31 kB / 475 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.788e-05/0.3841, allocations: 54.42 kB / 475.1 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.3855, allocations: 180.7 kB / 475.3 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.3859, allocations: 258.4 kB / 475.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.3859, allocations: 19.38 kB / 475.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.386, allocations: 28.22 kB / 475.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003222/0.3892, allocations: 0.8992 MB / 476.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3892, allocations: 1.594 kB / 476.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.3892, allocations: 10.25 kB / 476.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.3892, allocations: 7.188 kB / 476.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/0.3927, allocations: 0.9693 MB / 477.4 MB, free: 13.07 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.001783/0.3945, allocations: 1.346 MB / 478.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002597/0.3971, allocations: 0.7394 MB / 479.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.3974, allocations: 154 kB / 479.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08921/0.4866, allocations: 42.17 MB / 0.5096 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/0.4866, allocations: 40.56 kB / 0.5097 GB, free: 11.72 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 1.994e-06/0.4866, allocations: 0 / 0.5097 GB, free: 11.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005495/0.4921, allocations: 1.358 MB / 0.511 GB, free: 10.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4922, allocations: 55.34 kB / 0.511 GB, free: 10.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.4923, allocations: 121.8 kB / 0.5112 GB, free: 10.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.4924, allocations: 29.7 kB / 0.5112 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/0.4925, allocations: 120.8 kB / 0.5113 GB, free: 10 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.4926, allocations: 122.9 kB / 0.5114 GB, free: 9.883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000333/0.493, allocations: 165.6 kB / 0.5116 GB, free: 9.715 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4931, allocations: 330.8 kB / 0.5119 GB, free: 9.383 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006914/0.4938, allocations: 339.6 kB / 0.5122 GB, free: 9.051 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007761/0.4946, allocations: 407.3 kB / 0.5126 GB, free: 8.625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.496, allocations: 0.7144 MB / 0.5133 GB, free: 7.883 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4961, allocations: 0 / 0.5133 GB, free: 7.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002034/0.4981, allocations: 0.8722 MB / 0.5142 GB, free: 7.004 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4981, allocations: 7.938 kB / 0.5142 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.4981, allocations: 9.016 kB / 0.5142 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.4981, allocations: 4 kB / 0.5142 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007129/0.4989, allocations: 175.7 kB / 0.5143 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.4989, allocations: 7.938 kB / 0.5144 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.4992, allocations: 31.83 kB / 0.5144 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4993, allocations: 59.94 kB / 0.5144 GB, free: 6.715 MB / 430.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.0002732/0.4996, allocations: 141.8 kB / 0.5146 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.4998, allocations: 19.84 kB / 0.5146 GB, free: 6.547 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008707/0.5085, allocations: 7.978 MB / 0.5224 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-05/0.5085, allocations: 27.95 kB / 0.5224 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.5085, allocations: 0 / 0.5224 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5085, allocations: 7.984 kB / 0.5224 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003558/0.5121, allocations: 3.609 MB / 0.5259 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.5121, allocations: 0 / 0.5259 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006818/0.5128, allocations: 111.8 kB / 0.526 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.898e-06/0.5128, allocations: 7.938 kB / 0.5261 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.5128, allocations: 11.98 kB / 0.5261 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.5128, allocations: 0 / 0.5261 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.5128, allocations: 0 / 0.5261 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.5155, allocations: 1.839 MB / 0.5279 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.5156, allocations: 140.5 kB / 0.528 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/0.5157, allocations: 15.92 kB / 0.528 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.516, allocations: 12 kB / 0.528 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.5161, allocations: 31.95 kB / 0.5281 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/0.5162, allocations: 12.55 kB / 0.5281 GB, free: 8.434 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.808e-05/0.5163, allocations: 91.34 kB / 0.5282 GB, free: 8.344 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5163, allocations: 0 / 0.5282 GB, free: 8.344 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003438/0.5197, allocations: 1.006 MB / 0.5291 GB, free: 7.336 MB / 446.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.008788/0.5285, allocations: 3.439 MB / 0.5325 GB, free: 3.883 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.5304, allocations: 0.8878 MB / 0.5334 GB, free: 2.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/0.5304, allocations: 4 kB / 0.5334 GB, free: 2.992 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.5312, allocations: 0.5127 MB / 0.5339 GB, free: 2.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006844/0.5319, allocations: 76.64 kB / 0.5339 GB, free: 2.406 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.5446, allocations: 4.687 MB / 0.5385 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.5453, allocations: 0.8575 MB / 0.5394 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002261/0.5475, allocations: 1.787 MB / 0.5411 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.5481, allocations: 219.3 kB / 0.5413 GB, free: 10.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5481, allocations: 4 kB / 0.5413 GB, free: 10.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09133/0.6394, allocations: 45.75 MB / 0.586 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.75, allocations: 0 / 0.586 GB, free: 12.96 MB / 0.4981 GB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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: 14.466215164982714]