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.00131/0.00131, allocations: 117 kB / 18.49 MB, free: 4.59 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.001457/0.001457, allocations: 212.7 kB / 21.45 MB, free: 1.637 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.402/1.402, allocations: 230.5 MB / 254.7 MB, free: 15.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 63.89 kB / 374.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 53.37 MB / 427.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01736/0.1222, allocations: 13.5 MB / 441.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2069/0.3291, allocations: 15.6 MB / 457 MB, free: 7.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3293, allocations: 0 / 457 MB, free: 7.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003475/0.3296, allocations: 83.3 kB / 457.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.3299, allocations: 113.3 kB / 457.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01492/0.3448, allocations: 5.979 MB / 463.2 MB, free: 6.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005231/0.3453, allocations: 338.8 kB / 463.5 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.983e-05/0.3454, allocations: 13.38 kB / 463.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000463/0.3459, allocations: 235.6 kB / 463.7 MB, free: 6.648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.346, allocations: 111.4 kB / 463.8 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.3461, allocations: 14.16 kB / 463.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01434/0.3604, allocations: 6.778 MB / 470.6 MB, free: 5.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.499e-05/0.3605, allocations: 44.67 kB / 470.7 MB, free: 5.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.3607, allocations: 104.3 kB / 470.8 MB, free: 5.863 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.371, allocations: 3.927 MB / 474.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.371, allocations: 0 / 474.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.371, allocations: 0.9375 kB / 474.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.371, allocations: 0 / 474.7 MB, free: 3.582 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.003184/0.3742, allocations: 1.028 MB / 475.7 MB, free: 2.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3742, allocations: 8.312 kB / 475.7 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.863e-05/0.3742, allocations: 11.16 kB / 475.8 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.3743, allocations: 56.48 kB / 475.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.3756, allocations: 179.4 kB / 476 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.3759, allocations: 257.8 kB / 476.2 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.376, allocations: 18.16 kB / 476.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.376, allocations: 25.41 kB / 476.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.3789, allocations: 0.903 MB / 477.2 MB, free: 1.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3789, allocations: 5.281 kB / 477.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.379, allocations: 6.688 kB / 477.2 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.379, allocations: 4.688 kB / 477.2 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003034/0.382, allocations: 0.9758 MB / 478.2 MB, free: 1.234 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.001346/0.3834, allocations: 1.34 MB / 479.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.386, allocations: 0.7277 MB / 480.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.3863, allocations: 150.7 kB / 480.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08505/0.4713, allocations: 42.18 MB / 0.5103 GB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.4714, allocations: 34.56 kB / 0.5104 GB, free: 5.188 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.275e-06/0.4714, allocations: 0 / 0.5104 GB, free: 5.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005527/0.4769, allocations: 1.362 MB / 0.5117 GB, free: 3.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.477, allocations: 55.41 kB / 0.5117 GB, free: 3.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.4771, allocations: 125.8 kB / 0.5119 GB, free: 3.621 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.25e-05/0.4772, allocations: 33.7 kB / 0.5119 GB, free: 3.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.4773, allocations: 120.2 kB / 0.512 GB, free: 3.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.4774, allocations: 111 kB / 0.5121 GB, free: 3.355 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003272/0.4778, allocations: 169.5 kB / 0.5123 GB, free: 3.184 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4779, allocations: 326.8 kB / 0.5126 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006832/0.4786, allocations: 343.6 kB / 0.5129 GB, free: 2.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007545/0.4793, allocations: 399.3 kB / 0.5133 GB, free: 2.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.4808, allocations: 0.7183 MB / 0.514 GB, free: 1.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.4808, allocations: 4 kB / 0.514 GB, free: 1.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001993/0.4828, allocations: 0.8642 MB / 0.5148 GB, free: 492 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.4828, allocations: 12.19 kB / 0.5149 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4828, allocations: 4 kB / 0.5149 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.4828, allocations: 4 kB / 0.5149 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007286/0.4836, allocations: 175.8 kB / 0.515 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.4836, allocations: 7.938 kB / 0.515 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.484, allocations: 39.7 kB / 0.5151 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.4841, allocations: 63.92 kB / 0.5151 GB, free: 184 kB / 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.0002616/0.4843, allocations: 133.8 kB / 0.5153 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.4845, allocations: 27.84 kB / 0.5153 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008137/0.4926, allocations: 7.972 MB / 0.5231 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.429e-05/0.4927, allocations: 23.97 kB / 0.5231 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.4927, allocations: 0.875 kB / 0.5231 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4927, allocations: 3.984 kB / 0.5231 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.496, allocations: 3.6 MB / 0.5266 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.496, allocations: 1.219 kB / 0.5266 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006544/0.4967, allocations: 111.8 kB / 0.5267 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.4967, allocations: 3.938 kB / 0.5267 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.156e-05/0.4968, allocations: 12.86 kB / 0.5267 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4968, allocations: 4 kB / 0.5267 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4968, allocations: 0 / 0.5267 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.4994, allocations: 1.843 MB / 0.5285 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.4995, allocations: 144.4 kB / 0.5287 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.4995, allocations: 11.94 kB / 0.5287 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.4998, allocations: 15.06 kB / 0.5287 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.797e-05/0.4999, allocations: 27.95 kB / 0.5287 GB, free: 1.953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.5, allocations: 19.98 kB / 0.5288 GB, free: 1.934 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.147e-05/0.5001, allocations: 91.27 kB / 0.5288 GB, free: 1.844 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5001, allocations: 4.062 kB / 0.5288 GB, free: 1.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003478/0.5035, allocations: 1.002 MB / 0.5298 GB, free: 0.8359 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.008663/0.5122, allocations: 3.439 MB / 0.5332 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.5139, allocations: 0.8917 MB / 0.5341 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5139, allocations: 0 / 0.5341 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007732/0.5147, allocations: 0.5127 MB / 0.5346 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.5154, allocations: 84.39 kB / 0.5346 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00917/0.5246, allocations: 4.675 MB / 0.5392 GB, free: 7.191 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.525, allocations: 0.8536 MB / 0.54 GB, free: 6.312 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.527, allocations: 1.786 MB / 0.5418 GB, free: 4.527 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004908/0.5275, allocations: 223.3 kB / 0.542 GB, free: 4.309 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5275, allocations: 0 / 0.542 GB, free: 4.309 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08173/0.6093, allocations: 45.79 MB / 0.5867 GB, free: 6.551 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.3, allocations: 9.688 kB / 0.5867 GB, free: 6.547 MB / 494.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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: 14.2439253370394]