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.001544/0.001544, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.001698/0.001698, allocations: 205.7 kB / 22.12 MB, free: 0.9609 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.387/1.387, allocations: 207.6 MB / 232.5 MB, free: 11.53 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",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.001729/0.001729, allocations: 59.91 kB / 343.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2437, allocations: 49.14 MB / 392.9 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01437/0.258, allocations: 13.39 MB / 406.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01891/0.2769, allocations: 15.6 MB / 421.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.2772, allocations: 1.344 kB / 421.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003583/0.2775, allocations: 88.59 kB / 422 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003407/0.2779, allocations: 95.55 kB / 422.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01825/0.2961, allocations: 5.964 MB / 428.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005152/0.2966, allocations: 346.5 kB / 428.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.2967, allocations: 7.344 kB / 428.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/0.2972, allocations: 227 kB / 428.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.2973, allocations: 112.2 kB / 428.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.2974, allocations: 13.91 kB / 428.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/0.3101, allocations: 6.749 MB / 435.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.469e-05/0.3102, allocations: 51.81 kB / 435.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.3104, allocations: 103.6 kB / 435.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007786/0.3182, allocations: 3.898 MB / 439.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3182, allocations: 0 / 439.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3182, allocations: 4 kB / 439.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.3182, allocations: 0 / 439.6 MB, free: 5.352 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.002489/0.3207, allocations: 1.014 MB / 440.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3208, allocations: 12.03 kB / 440.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.856e-05/0.3208, allocations: 4.625 kB / 440.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.89e-05/0.3208, allocations: 54.73 kB / 440.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.3222, allocations: 180.6 kB / 440.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.3226, allocations: 256.1 kB / 441.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.3226, allocations: 20.56 kB / 441.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.3227, allocations: 23.95 kB / 441.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003173/0.3258, allocations: 0.8973 MB / 442 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3259, allocations: 4 kB / 442 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.3259, allocations: 15.98 kB / 442 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3259, allocations: 7.938 kB / 442 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.3292, allocations: 0.9618 MB / 443 MB, free: 1.789 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.001681/0.3309, allocations: 1.358 MB / 444.4 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.3336, allocations: 0.7284 MB / 445.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002863/0.3339, allocations: 148.8 kB / 445.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0798/0.4137, allocations: 37.55 MB / 482.8 MB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.4137, allocations: 46.55 kB / 482.8 MB, free: 5.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.4137, allocations: 0 / 482.8 MB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005339/0.419, allocations: 1.36 MB / 484.2 MB, free: 3.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.4191, allocations: 55.41 kB / 484.3 MB, free: 3.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.4192, allocations: 125.8 kB / 484.4 MB, free: 3.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.721e-05/0.4193, allocations: 29.7 kB / 484.4 MB, free: 3.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.4194, allocations: 112.9 kB / 484.5 MB, free: 3.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.4196, allocations: 123 kB / 484.6 MB, free: 3.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003147/0.4199, allocations: 161.5 kB / 484.8 MB, free: 3.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.42, allocations: 326.8 kB / 485.1 MB, free: 3.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006981/0.4207, allocations: 347.8 kB / 485.5 MB, free: 2.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/0.4215, allocations: 399.3 kB / 485.8 MB, free: 2.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.4229, allocations: 0.7115 MB / 486.6 MB, free: 1.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4229, allocations: 0 / 486.6 MB, free: 1.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001934/0.4248, allocations: 0.8719 MB / 487.4 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4248, allocations: 7.938 kB / 487.4 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.4248, allocations: 4.25 kB / 487.4 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.4249, allocations: 8 kB / 487.4 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000665/0.4255, allocations: 171.8 kB / 487.6 MB, free: 472 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4255, allocations: 4 kB / 487.6 MB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.4259, allocations: 35.77 kB / 487.7 MB, free: 432 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.426, allocations: 67.92 kB / 487.7 MB, free: 364 kB / 398.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.0002375/0.4262, allocations: 141.7 kB / 487.9 MB, free: 212 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.4264, allocations: 19.84 kB / 487.9 MB, free: 192 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008214/0.4346, allocations: 7.962 MB / 495.8 MB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.642e-05/0.4346, allocations: 27.95 kB / 495.9 MB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.4346, allocations: 0 / 495.9 MB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.4346, allocations: 3.984 kB / 495.9 MB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003403/0.438, allocations: 3.597 MB / 499.5 MB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.4381, allocations: 0 / 499.5 MB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.4388, allocations: 115.8 kB / 499.6 MB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.4388, allocations: 3.938 kB / 499.6 MB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.4388, allocations: 15.92 kB / 499.6 MB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.4388, allocations: 4 kB / 499.6 MB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4388, allocations: 0 / 499.6 MB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.4415, allocations: 1.843 MB / 0.4897 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.4416, allocations: 148.4 kB / 0.4898 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.4416, allocations: 11.98 kB / 0.4898 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002783/0.4419, allocations: 8 kB / 0.4899 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.442, allocations: 31.95 kB / 0.4899 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/0.442, allocations: 19.98 kB / 0.4899 GB, free: 2.086 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.788e-05/0.4421, allocations: 91.27 kB / 0.49 GB, free: 1.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4421, allocations: 0 / 0.49 GB, free: 1.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002799/0.4449, allocations: 0.9863 MB / 0.491 GB, free: 1.008 MB / 414.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.007291/0.4522, allocations: 3.429 MB / 0.4943 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001887/0.4541, allocations: 0.8839 MB / 0.4952 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4541, allocations: 4 kB / 0.4952 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.4549, allocations: 0.5127 MB / 0.4957 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000661/0.4555, allocations: 88.31 kB / 0.4958 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008349/0.4639, allocations: 4.674 MB / 0.5003 GB, free: 7.262 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.4643, allocations: 0.8497 MB / 0.5011 GB, free: 6.387 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001991/0.4663, allocations: 1.784 MB / 0.5029 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004798/0.4668, allocations: 219.3 kB / 0.5031 GB, free: 4.387 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4668, allocations: 0 / 0.5031 GB, free: 4.387 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08065/0.5475, allocations: 45.61 MB / 0.5476 GB, free: 6.613 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.16, allocations: 8 kB / 0.5476 GB, free: 6.605 MB / 478.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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.125450141029432]