Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009468/0.000947, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 225.7 MB / 243.2 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007843/0.0007843, allocations: 89.94 kB / 294.4 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.000222, allocations: 8 kB / 354.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.176, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01042/0.1865, allocations: 15.94 MB / 420.5 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.2016, allocations: 23.02 MB / 443.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2017, allocations: 4 kB / 443.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.2021, allocations: 79.59 kB / 443.6 MB, free: 5.785 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.2023, allocations: 103.3 kB / 443.7 MB, free: 5.684 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01168/0.214, allocations: 4.704 MB / 448.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.2144, allocations: 370.5 kB / 448.8 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.917e-05/0.2145, allocations: 17.62 kB / 448.8 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004075/0.2149, allocations: 219 kB / 449 MB, free: 380 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.215, allocations: 103.6 kB / 449.1 MB, free: 276 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.2151, allocations: 8 kB / 449.1 MB, free: 268 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01004/0.2251, allocations: 6.455 MB / 455.6 MB, free: 9.797 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.2252, allocations: 35.89 kB / 455.6 MB, free: 9.762 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.2253, allocations: 125.2 kB / 455.7 MB, free: 9.633 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006239/0.2316, allocations: 3.898 MB / 459.6 MB, free: 5.727 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2316, allocations: 0 / 459.6 MB, free: 5.727 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2316, allocations: 0 / 459.6 MB, free: 5.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.2316, allocations: 0 / 459.6 MB, free: 5.727 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.001904/0.2335, allocations: 0.9518 MB / 460.6 MB, free: 4.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2336, allocations: 8.031 kB / 460.6 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/0.2349, allocations: 176.6 kB / 460.8 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.2351, allocations: 271.8 kB / 461 MB, free: 4.242 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.2352, allocations: 20.81 kB / 461 MB, free: 4.219 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/0.2352, allocations: 24.38 kB / 461.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/0.2379, allocations: 0.9129 MB / 462 MB, free: 3.262 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.238, allocations: 0 / 462 MB, free: 3.262 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.238, allocations: 12 kB / 462 MB, free: 3.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.238, allocations: 4 kB / 462 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.2408, allocations: 0.9812 MB / 463 MB, free: 2.266 MB / 330.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.001381/0.2422, allocations: 1.35 MB / 464.3 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/0.2445, allocations: 0.7361 MB / 465.1 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.2447, allocations: 156.8 kB / 465.2 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06517/0.3099, allocations: 37.76 MB / 0.4912 GB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.31, allocations: 42.5 kB / 0.4912 GB, free: 5.617 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.936e-06/0.31, allocations: 0 / 0.4912 GB, free: 5.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004648/0.3147, allocations: 1.373 MB / 0.4926 GB, free: 4.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3148, allocations: 55.41 kB / 0.4926 GB, free: 4.172 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.3149, allocations: 121.8 kB / 0.4927 GB, free: 4.043 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.872e-05/0.315, allocations: 29.7 kB / 0.4928 GB, free: 4.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.245e-05/0.3151, allocations: 112.7 kB / 0.4929 GB, free: 3.891 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3152, allocations: 118.3 kB / 0.493 GB, free: 3.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.3153, allocations: 4 kB / 0.493 GB, free: 3.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.689e-05/0.3154, allocations: 330.8 kB / 0.4933 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.316, allocations: 339.8 kB / 0.4936 GB, free: 3.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.3166, allocations: 411.5 kB / 0.494 GB, free: 2.676 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.3177, allocations: 0.7153 MB / 0.4947 GB, free: 1.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3177, allocations: 0 / 0.4947 GB, free: 1.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001615/0.3194, allocations: 0.8758 MB / 0.4956 GB, free: 1.051 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3194, allocations: 4 kB / 0.4956 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3194, allocations: 4 kB / 0.4956 GB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3194, allocations: 12.19 kB / 0.4956 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.3201, allocations: 175.8 kB / 0.4958 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3201, allocations: 4 kB / 0.4958 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.3204, allocations: 39.67 kB / 0.4958 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.3206, allocations: 63.94 kB / 0.4959 GB, free: 0.7539 MB / 378.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.0002059/0.3208, allocations: 153.6 kB / 0.496 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.3209, allocations: 16.19 kB / 0.496 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.161/0.4818, allocations: 7.976 MB / 0.5038 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.2e-05/0.4819, allocations: 27.78 kB / 0.5038 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4819, allocations: 1.812 kB / 0.5038 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.4819, allocations: 2.25 kB / 0.5038 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.4841, allocations: 3.591 MB / 0.5074 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.4841, allocations: 0 / 0.5074 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.4847, allocations: 115.2 kB / 0.5075 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4847, allocations: 2.688 kB / 0.5075 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.4848, allocations: 15.38 kB / 0.5075 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.4848, allocations: 5.5 kB / 0.5075 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4848, allocations: 4.75 kB / 0.5075 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.4866, allocations: 1.854 MB / 0.5093 GB, free: 96.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.4866, allocations: 144.1 kB / 0.5094 GB, free: 96.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.4867, allocations: 11.19 kB / 0.5094 GB, free: 96.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.487, allocations: 27.25 kB / 0.5095 GB, free: 96.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.4871, allocations: 32.98 kB / 0.5095 GB, free: 96.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.6e-05/0.4871, allocations: 19.98 kB / 0.5095 GB, free: 96.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.59e-05/0.4872, allocations: 87.28 kB / 0.5096 GB, free: 95.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4872, allocations: 0 / 0.5096 GB, free: 95.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002484/0.4897, allocations: 0.9769 MB / 0.5106 GB, free: 95.1 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.003391/0.4931, allocations: 1.141 MB / 0.5117 GB, free: 94.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.4943, allocations: 0.9146 MB / 0.5126 GB, free: 93.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4943, allocations: 1.406 kB / 0.5126 GB, free: 93.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.4949, allocations: 0.5915 MB / 0.5131 GB, free: 92.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005733/0.4955, allocations: 85.7 kB / 0.5132 GB, free: 92.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.4969, allocations: 1.649 MB / 0.5148 GB, free: 91.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.4971, allocations: 0.8531 MB / 0.5157 GB, free: 90.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001324/0.4985, allocations: 1.784 MB / 0.5174 GB, free: 88.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.4988, allocations: 87.34 kB / 0.5175 GB, free: 88.3 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4988, allocations: 4 kB / 0.5175 GB, free: 88.3 MB / 378.7 MB Notification: Performance of Templates: time 0.03878/0.5376, allocations: 40.49 MB / 0.557 GB, free: 47.82 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches