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.001885/0.001885, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.00256/0.00256, allocations: 212 kB / 24.47 MB, free: 3.547 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.482/1.482, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",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.001867/0.001867, allocations: 57.8 kB / 348 MB, free: 9.156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2521, allocations: 49.16 MB / 397.2 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01486/0.267, allocations: 12.21 MB / 409.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01932/0.2863, allocations: 13.63 MB / 423 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.2865, allocations: 1.094 kB / 423 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.2869, allocations: 73.42 kB / 423.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004081/0.2873, allocations: 115.9 kB / 423.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0187/0.306, allocations: 5.909 MB / 429.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005447/0.3066, allocations: 341.3 kB / 429.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.823e-05/0.3066, allocations: 7.906 kB / 429.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005181/0.3072, allocations: 215.3 kB / 429.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.3073, allocations: 107.5 kB / 429.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.3074, allocations: 12 kB / 429.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01349/0.3209, allocations: 6.45 MB / 436.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.321, allocations: 47.83 kB / 436.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.3211, allocations: 87.72 kB / 436.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.3303, allocations: 3.894 MB / 440.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3303, allocations: 4 kB / 440.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3303, allocations: 0 / 440.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.3303, allocations: 0 / 440.3 MB, free: 7.695 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.002576/0.3329, allocations: 0.9312 MB / 441.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3329, allocations: 11.98 kB / 441.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/0.333, allocations: 66.66 kB / 441.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.3343, allocations: 176.7 kB / 441.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.3347, allocations: 198.3 kB / 441.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.3347, allocations: 20.81 kB / 441.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.3348, allocations: 23.89 kB / 441.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003139/0.3379, allocations: 0.9591 MB / 442.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3379, allocations: 0 / 442.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.338, allocations: 12 kB / 442.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.338, allocations: 8 kB / 442.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00323/0.3412, allocations: 0.9617 MB / 443.6 MB, free: 4.234 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.001747/0.3429, allocations: 0.9585 MB / 444.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3455, allocations: 0.7167 MB / 445.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.3458, allocations: 156.7 kB / 445.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07235/0.4181, allocations: 19.72 MB / 465.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/0.4182, allocations: 38.56 kB / 465.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.965e-06/0.4182, allocations: 0 / 465.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005477/0.4237, allocations: 1.364 MB / 466.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.4237, allocations: 55.41 kB / 466.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.4239, allocations: 121.8 kB / 466.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.424, allocations: 29.7 kB / 466.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.4241, allocations: 116.9 kB / 466.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.4243, allocations: 122.9 kB / 467 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/0.4246, allocations: 169.5 kB / 467.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.4248, allocations: 322.8 kB / 467.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006949/0.4255, allocations: 335.8 kB / 467.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000799/0.4263, allocations: 411.3 kB / 468.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.4278, allocations: 0.7037 MB / 468.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.4278, allocations: 4 kB / 468.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002062/0.4299, allocations: 0.868 MB / 469.8 MB, free: 9.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.4299, allocations: 11.94 kB / 469.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4299, allocations: 0 / 469.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.4299, allocations: 12.19 kB / 469.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006844/0.4306, allocations: 175.8 kB / 470 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.4306, allocations: 7.938 kB / 470 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.431, allocations: 35.78 kB / 470 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.4311, allocations: 67.91 kB / 470.1 MB, free: 9.547 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.0003051/0.4314, allocations: 138.1 kB / 470.2 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.4316, allocations: 19.84 kB / 470.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009097/0.4407, allocations: 8.501 MB / 478.7 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.05e-05/0.4407, allocations: 23.95 kB / 478.8 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.4407, allocations: 4 kB / 478.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.4407, allocations: 0 / 478.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003796/0.4445, allocations: 3.717 MB / 482.5 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.4445, allocations: 7.938 kB / 482.5 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006605/0.4452, allocations: 103.8 kB / 482.6 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.446e-05/0.4452, allocations: 7.938 kB / 482.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.881e-05/0.4453, allocations: 12 kB / 482.6 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4453, allocations: 4 kB / 482.6 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4453, allocations: 3.938 kB / 482.6 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.4481, allocations: 1.878 MB / 484.5 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.4482, allocations: 75.28 kB / 484.6 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.4483, allocations: 11.94 kB / 484.6 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.4486, allocations: 20.05 kB / 484.6 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.4487, allocations: 31.94 kB / 484.6 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.4487, allocations: 15.98 kB / 484.7 MB, free: 10.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.009e-05/0.4488, allocations: 87.28 kB / 484.7 MB, free: 10.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4488, allocations: 3.938 kB / 484.7 MB, free: 10.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003049/0.4519, allocations: 0.9864 MB / 485.7 MB, free: 9.594 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.007935/0.4598, allocations: 3.463 MB / 489.2 MB, free: 6.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.4615, allocations: 0.8951 MB / 490.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4615, allocations: 288 / 490.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008686/0.4624, allocations: 0.5322 MB / 490.6 MB, free: 4.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006914/0.4631, allocations: 84.33 kB / 490.7 MB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.472, allocations: 4.687 MB / 495.4 MB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.4723, allocations: 255.1 kB / 495.6 MB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002221/0.4745, allocations: 1.78 MB / 497.4 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/0.475, allocations: 223.3 kB / 497.6 MB, free: 13.5 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.475, allocations: 0 / 497.6 MB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/0.5773, allocations: 46.8 MB / 0.5317 GB, free: 14.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.21, allocations: 4.062 kB / 0.5317 GB, free: 14.45 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/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.94022221211344]