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.001325/0.001325, allocations: 114 kB / 20.43 MB, free: 1.457 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.001432/0.001432, allocations: 214 kB / 23.74 MB, free: 4.672 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.425/1.425, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001855/0.001855, allocations: 59.91 kB / 378.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2604, allocations: 53.42 MB / 432 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01744/0.2778, allocations: 13.56 MB / 445.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.297, allocations: 15.66 MB / 461.2 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.2972, allocations: 7.938 kB / 461.2 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003413/0.2975, allocations: 79.53 kB / 461.3 MB, free: 9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.2979, allocations: 107.2 kB / 461.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01635/0.3142, allocations: 5.995 MB / 467.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.3147, allocations: 346.5 kB / 467.8 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.425e-05/0.3148, allocations: 9.812 kB / 467.8 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005185/0.3153, allocations: 239 kB / 468 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.3155, allocations: 103.7 kB / 468.1 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.3155, allocations: 12 kB / 468.1 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01317/0.3287, allocations: 6.79 MB / 474.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.3288, allocations: 43.89 kB / 475 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.329, allocations: 111.5 kB / 475.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.3391, allocations: 3.913 MB / 479 MB, free: 7.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3391, allocations: 4 kB / 479 MB, free: 7.332 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3391, allocations: 0 / 479 MB, free: 7.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.3391, allocations: 0 / 479 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.002694/0.3418, allocations: 0.9467 MB / 479.9 MB, free: 6.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3418, allocations: 8.031 kB / 479.9 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.304e-05/0.3419, allocations: 62.72 kB / 480 MB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.3432, allocations: 176.6 kB / 480.2 MB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.3435, allocations: 206.2 kB / 480.4 MB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.3436, allocations: 16.81 kB / 480.4 MB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.3436, allocations: 23.94 kB / 480.4 MB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003081/0.3467, allocations: 0.905 MB / 481.3 MB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3467, allocations: 4 kB / 481.3 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.3467, allocations: 11.98 kB / 481.3 MB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3467, allocations: 4 kB / 481.3 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.3499, allocations: 0.9695 MB / 482.3 MB, free: 3.922 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.001723/0.3517, allocations: 1.311 MB / 483.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.3542, allocations: 0.7363 MB / 484.3 MB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.3545, allocations: 152.8 kB / 484.5 MB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07039/0.4249, allocations: 20.55 MB / 0.4932 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.4249, allocations: 42.56 kB / 0.4932 GB, free: 12.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.445e-06/0.4249, allocations: 0 / 0.4932 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005219/0.4302, allocations: 1.357 MB / 0.4946 GB, free: 11.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.4302, allocations: 55.41 kB / 0.4946 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.4303, allocations: 121.8 kB / 0.4947 GB, free: 11.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.687e-05/0.4304, allocations: 29.7 kB / 0.4948 GB, free: 11.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.4305, allocations: 128.8 kB / 0.4949 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.4306, allocations: 119 kB / 0.495 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.4309, allocations: 165.5 kB / 0.4952 GB, free: 10.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.431, allocations: 326.8 kB / 0.4955 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000628/0.4317, allocations: 339.6 kB / 0.4958 GB, free: 10.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007147/0.4324, allocations: 407.5 kB / 0.4962 GB, free: 9.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.4337, allocations: 0.7075 MB / 0.4969 GB, free: 9.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4337, allocations: 0 / 0.4969 GB, free: 9.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001846/0.4356, allocations: 0.8759 MB / 0.4977 GB, free: 8.254 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4356, allocations: 7.938 kB / 0.4977 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.4356, allocations: 4 kB / 0.4977 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4356, allocations: 4 kB / 0.4977 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.4363, allocations: 175.7 kB / 0.4979 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.4363, allocations: 7.984 kB / 0.4979 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.4367, allocations: 31.84 kB / 0.498 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.4368, allocations: 68.14 kB / 0.498 GB, free: 7.961 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.0002491/0.437, allocations: 138.1 kB / 0.4981 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.4372, allocations: 19.84 kB / 0.4982 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008763/0.4459, allocations: 8.509 MB / 0.5065 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.634e-05/0.446, allocations: 31.95 kB / 0.5065 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.446, allocations: 0 / 0.5065 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.446, allocations: 0 / 0.5065 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.4495, allocations: 3.771 MB / 0.5102 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.4496, allocations: 4 kB / 0.5102 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006781/0.4502, allocations: 115.7 kB / 0.5103 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.4502, allocations: 3.938 kB / 0.5103 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.114e-05/0.4503, allocations: 15.98 kB / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.4503, allocations: 0 / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4503, allocations: 0 / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.4529, allocations: 1.882 MB / 0.5122 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.453, allocations: 67.39 kB / 0.5122 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.537e-05/0.4531, allocations: 7.938 kB / 0.5122 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003086/0.4534, allocations: 19.98 kB / 0.5123 GB, free: 9.078 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.773e-05/0.4535, allocations: 36 kB / 0.5123 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.4535, allocations: 8 kB / 0.5123 GB, free: 9.035 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.078e-05/0.4536, allocations: 95.2 kB / 0.5124 GB, free: 8.941 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4536, allocations: 0 / 0.5124 GB, free: 8.941 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002905/0.4565, allocations: 1.006 MB / 0.5134 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.00712/0.4636, allocations: 3.469 MB / 0.5168 GB, free: 4.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4653, allocations: 0.8953 MB / 0.5176 GB, free: 3.543 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4653, allocations: 0 / 0.5176 GB, free: 3.543 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007619/0.4661, allocations: 0.5288 MB / 0.5181 GB, free: 3.016 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.4667, allocations: 83.84 kB / 0.5182 GB, free: 2.934 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008086/0.4748, allocations: 4.721 MB / 0.5228 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.4753, allocations: 0.8575 MB / 0.5237 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002024/0.4773, allocations: 1.78 MB / 0.5254 GB, free: 11.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004773/0.4778, allocations: 227.3 kB / 0.5256 GB, free: 11.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4778, allocations: 0 / 0.5256 GB, free: 11.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2908/0.7686, allocations: 46.85 MB / 0.5714 GB, free: 77.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.73, allocations: 0 / 0.5714 GB, free: 77.18 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.376628136000363]