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.001833/0.001833, allocations: 117.9 kB / 18.45 MB, free: 4.609 MB / 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.002231/0.002231, allocations: 215.3 kB / 21.41 MB, free: 1.648 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.508/1.508, allocations: 207.6 MB / 231.8 MB, free: 4.059 MB / 174.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.0017/0.0017, allocations: 56.55 kB / 343.1 MB, free: 9.164 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09876, allocations: 49.13 MB / 392.2 MB, free: 7.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01758/0.1163, allocations: 13.38 MB / 405.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.1357, allocations: 15.61 MB / 421.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.1359, allocations: 8 kB / 421.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.1363, allocations: 79.53 kB / 421.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000359/0.1367, allocations: 111.2 kB / 421.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0165/0.1532, allocations: 5.955 MB / 427.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.1537, allocations: 334.6 kB / 427.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.138e-05/0.1538, allocations: 17.67 kB / 427.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005076/0.1543, allocations: 227 kB / 427.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1545, allocations: 107.6 kB / 428.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.1545, allocations: 12 kB / 428.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/0.1685, allocations: 6.754 MB / 434.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.1687, allocations: 43.83 kB / 434.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.1688, allocations: 107.6 kB / 435 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.1791, allocations: 3.898 MB / 438.9 MB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1791, allocations: 0 / 438.9 MB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1791, allocations: 4 kB / 438.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1791, allocations: 0 / 438.9 MB, free: 9.102 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.002825/0.182, allocations: 1.018 MB / 439.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.182, allocations: 8.031 kB / 439.9 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.719e-05/0.1821, allocations: 54.73 kB / 439.9 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.1835, allocations: 176.7 kB / 440.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.1839, allocations: 256.1 kB / 440.4 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.1839, allocations: 12.81 kB / 440.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.184, allocations: 31.89 kB / 440.4 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.1872, allocations: 0.905 MB / 441.3 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1872, allocations: 3.938 kB / 441.3 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.1872, allocations: 12 kB / 441.3 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1872, allocations: 4 kB / 441.3 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003318/0.1906, allocations: 0.9734 MB / 442.3 MB, free: 5.535 MB / 366.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.001821/0.1924, allocations: 1.342 MB / 443.7 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.1953, allocations: 0.7244 MB / 444.4 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.1956, allocations: 148.8 kB / 444.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.278/0.4736, allocations: 37.54 MB / 482.1 MB, free: 53.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.4736, allocations: 34.06 kB / 482.1 MB, free: 53.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.464e-06/0.4736, allocations: 3.969 kB / 482.1 MB, free: 53.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.004914/0.4785, allocations: 1.363 MB / 483.5 MB, free: 53.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.4785, allocations: 55.38 kB / 483.5 MB, free: 53.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.438e-05/0.4786, allocations: 121.2 kB / 483.6 MB, free: 52.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.4787, allocations: 29.45 kB / 483.7 MB, free: 52.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.4788, allocations: 117.8 kB / 483.8 MB, free: 52.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.4789, allocations: 119.3 kB / 483.9 MB, free: 52.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.4791, allocations: 165.1 kB / 484.1 MB, free: 52.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.844e-05/0.4792, allocations: 326.6 kB / 484.4 MB, free: 52.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/0.4797, allocations: 335.6 kB / 484.7 MB, free: 52.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006095/0.4803, allocations: 412.5 kB / 485.1 MB, free: 52.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.4814, allocations: 0.709 MB / 485.8 MB, free: 51.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4814, allocations: 0 / 485.8 MB, free: 51.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001603/0.4831, allocations: 0.8772 MB / 486.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4831, allocations: 11.92 kB / 486.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4831, allocations: 0 / 486.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.4831, allocations: 5.578 kB / 486.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005964/0.4837, allocations: 177.5 kB / 486.9 MB, free: 51.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4837, allocations: 3.469 kB / 486.9 MB, free: 51.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.484, allocations: 37.36 kB / 486.9 MB, free: 51.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/0.4841, allocations: 64.88 kB / 487 MB, free: 51.22 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.0002152/0.4843, allocations: 142.5 kB / 487.1 MB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.4845, allocations: 22.55 kB / 487.2 MB, free: 51.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00503/0.4895, allocations: 7.964 MB / 495.1 MB, free: 43.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-05/0.4895, allocations: 31.78 kB / 495.1 MB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4895, allocations: 6.906 kB / 495.2 MB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4895, allocations: 7.922 kB / 495.2 MB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.4915, allocations: 3.594 MB / 498.8 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.4915, allocations: 0 / 498.8 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005947/0.4921, allocations: 112.7 kB / 498.9 MB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4921, allocations: 0 / 498.9 MB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.4922, allocations: 15.98 kB / 498.9 MB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.4922, allocations: 4 kB / 498.9 MB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4922, allocations: 0 / 498.9 MB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.494, allocations: 1.843 MB / 0.489 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.4941, allocations: 145 kB / 0.4891 GB, free: 37.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.4942, allocations: 15.31 kB / 0.4891 GB, free: 37.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.4944, allocations: 8 kB / 0.4892 GB, free: 37.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/0.4945, allocations: 31.95 kB / 0.4892 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.4946, allocations: 19.98 kB / 0.4892 GB, free: 37.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.732e-05/0.4946, allocations: 91.28 kB / 0.4893 GB, free: 37.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4946, allocations: 0 / 0.4893 GB, free: 37.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002959/0.4976, allocations: 0.9948 MB / 0.4903 GB, free: 36.59 MB / 382.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.006183/0.5038, allocations: 3.415 MB / 0.4936 GB, free: 33.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.5051, allocations: 0.8759 MB / 0.4945 GB, free: 32.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5052, allocations: 3.844 kB / 0.4945 GB, free: 32.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005628/0.5057, allocations: 0.5204 MB / 0.495 GB, free: 31.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006328/0.5063, allocations: 94.44 kB / 0.4951 GB, free: 31.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006588/0.5129, allocations: 4.677 MB / 0.4996 GB, free: 26.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.5131, allocations: 0.8613 MB / 0.5005 GB, free: 26.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.5144, allocations: 1.778 MB / 0.5022 GB, free: 24.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/0.5149, allocations: 219.3 kB / 0.5024 GB, free: 24.1 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5149, allocations: 0 / 0.5024 GB, free: 24.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08542/0.6003, allocations: 45.56 MB / 0.5469 GB, free: 10.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.61, allocations: 8.016 kB / 0.5469 GB, free: 10.39 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.334262748001493]