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.001514/0.001514, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.00165/0.00165, allocations: 213.2 kB / 24.52 MB, free: 3.91 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.357/1.357, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.001785/0.001785, allocations: 63.89 kB / 379.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2487, allocations: 53.4 MB / 432.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01607/0.2648, allocations: 12.31 MB / 445 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.2817, allocations: 13.62 MB / 458.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.2818, allocations: 4 kB / 458.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003347/0.2821, allocations: 71.52 kB / 458.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.2825, allocations: 115.2 kB / 458.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0153/0.2978, allocations: 5.929 MB / 464.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005491/0.2983, allocations: 342.5 kB / 465.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.442e-05/0.2984, allocations: 5.812 kB / 465.1 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005178/0.2989, allocations: 223.1 kB / 465.3 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.2991, allocations: 115.5 kB / 465.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.2991, allocations: 12 kB / 465.5 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01213/0.3113, allocations: 6.735 MB / 472.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.3114, allocations: 47.83 kB / 472.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3115, allocations: 91.72 kB / 472.3 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007695/0.3192, allocations: 3.913 MB / 476.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3192, allocations: 0 / 476.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3192, allocations: 0 / 476.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.3192, allocations: 0 / 476.2 MB, free: 10.57 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.002462/0.3217, allocations: 0.9389 MB / 477.2 MB, free: 9.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3217, allocations: 8.031 kB / 477.2 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.72e-05/0.3218, allocations: 8.625 kB / 477.2 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.09e-05/0.3218, allocations: 62.72 kB / 477.3 MB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.3232, allocations: 180.5 kB / 477.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.3235, allocations: 202.2 kB / 477.6 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.3235, allocations: 24.5 kB / 477.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3236, allocations: 24 kB / 477.7 MB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003249/0.3268, allocations: 0.9552 MB / 478.6 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3268, allocations: 0 / 478.6 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.3269, allocations: 8 kB / 478.6 MB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3269, allocations: 15.98 kB / 478.7 MB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00335/0.3302, allocations: 0.9655 MB / 479.6 MB, free: 7.09 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.001496/0.3317, allocations: 0.9473 MB / 480.6 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.3344, allocations: 0.7246 MB / 481.3 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.3347, allocations: 153.3 kB / 481.4 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0691/0.4038, allocations: 20.64 MB / 0.4903 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.4039, allocations: 38.56 kB / 0.4904 GB, free: 500 kB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.4039, allocations: 0 / 0.4904 GB, free: 500 kB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005688/0.4096, allocations: 1.353 MB / 0.4917 GB, free: 15.13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.4096, allocations: 55.41 kB / 0.4917 GB, free: 15.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.4098, allocations: 125.7 kB / 0.4919 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/0.4098, allocations: 29.7 kB / 0.4919 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.4099, allocations: 120.8 kB / 0.492 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.4101, allocations: 123 kB / 0.4921 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003295/0.4104, allocations: 173.5 kB / 0.4923 GB, free: 14.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4106, allocations: 322.8 kB / 0.4926 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000688/0.4113, allocations: 339.8 kB / 0.4929 GB, free: 13.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007629/0.4121, allocations: 399.5 kB / 0.4933 GB, free: 13.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.4135, allocations: 0.7114 MB / 0.494 GB, free: 12.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4135, allocations: 0 / 0.494 GB, free: 12.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001983/0.4155, allocations: 0.8759 MB / 0.4948 GB, free: 11.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.4155, allocations: 7.938 kB / 0.4949 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4155, allocations: 4 kB / 0.4949 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.4155, allocations: 4 kB / 0.4949 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006959/0.4162, allocations: 171.8 kB / 0.495 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.4162, allocations: 7.938 kB / 0.495 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.4166, allocations: 35.83 kB / 0.4951 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4167, allocations: 68.48 kB / 0.4951 GB, free: 11.49 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.0002698/0.417, allocations: 141.7 kB / 0.4953 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.4172, allocations: 19.84 kB / 0.4953 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008948/0.4261, allocations: 8.505 MB / 0.5036 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/0.4262, allocations: 23.95 kB / 0.5036 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.4262, allocations: 0 / 0.5036 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4262, allocations: 8 kB / 0.5036 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/0.4298, allocations: 3.732 MB / 0.5073 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4298, allocations: 0 / 0.5073 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006745/0.4305, allocations: 103.8 kB / 0.5074 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/0.4305, allocations: 7.938 kB / 0.5074 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.4305, allocations: 15.98 kB / 0.5074 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.4305, allocations: 0 / 0.5074 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.4305, allocations: 7.875 kB / 0.5074 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/0.4333, allocations: 1.886 MB / 0.5092 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.406e-05/0.4334, allocations: 67.33 kB / 0.5093 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.4335, allocations: 12 kB / 0.5093 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.4338, allocations: 11.98 kB / 0.5093 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4339, allocations: 31.94 kB / 0.5094 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.4339, allocations: 16 kB / 0.5094 GB, free: 12.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.389e-05/0.434, allocations: 91.27 kB / 0.5095 GB, free: 12.51 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.434, allocations: 0 / 0.5095 GB, free: 12.51 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003193/0.4372, allocations: 1.006 MB / 0.5104 GB, free: 11.5 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.00798/0.4452, allocations: 3.474 MB / 0.5138 GB, free: 8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.4469, allocations: 0.8834 MB / 0.5147 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4469, allocations: 0 / 0.5147 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008167/0.4477, allocations: 0.5365 MB / 0.5152 GB, free: 6.582 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.4484, allocations: 87.78 kB / 0.5153 GB, free: 6.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009443/0.4579, allocations: 4.717 MB / 0.5199 GB, free: 1.648 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.4581, allocations: 259.2 kB / 0.5202 GB, free: 1.371 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002153/0.4603, allocations: 1.78 MB / 0.5219 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005112/0.4608, allocations: 223.3 kB / 0.5221 GB, free: 15.37 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4608, allocations: 0 / 0.5221 GB, free: 15.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.275/0.7358, allocations: 47.04 MB / 0.568 GB, free: 79.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.46, allocations: 7.328 kB / 0.5681 GB, free: 79.92 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 & /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: 17.297800380038098]