Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 110.4 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 191 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009653/0.0009654, allocations: 47.92 kB / 353.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2281, allocations: 49.44 MB / 402.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01484/0.243, allocations: 13.32 MB / 415.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01616/0.2591, allocations: 15.56 MB / 431.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.2593, allocations: 0 / 431.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003908/0.2598, allocations: 87.47 kB / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.2601, allocations: 111.2 kB / 431.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0143/0.2745, allocations: 5.965 MB / 437.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004289/0.2749, allocations: 342.6 kB / 437.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.428e-05/0.275, allocations: 17.62 kB / 437.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.2754, allocations: 227 kB / 438.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.2755, allocations: 103.6 kB / 438.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.2756, allocations: 12 kB / 438.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0111/0.2867, allocations: 6.763 MB / 445 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.511e-05/0.2868, allocations: 39.89 kB / 445.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.287, allocations: 107.5 kB / 445.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007296/0.2943, allocations: 3.899 MB / 449.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2943, allocations: 0 / 449.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2943, allocations: 0 / 449.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2943, allocations: 0 / 449.1 MB, free: 9.191 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.002343/0.2967, allocations: 0.9986 MB / 450.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2967, allocations: 8.031 kB / 450.1 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.646e-05/0.2968, allocations: 54.73 kB / 450.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/0.2981, allocations: 176.6 kB / 450.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.2984, allocations: 263.9 kB / 450.6 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.2985, allocations: 20.75 kB / 450.6 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.2985, allocations: 23.94 kB / 450.6 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.3016, allocations: 0.905 MB / 451.5 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.3016, allocations: 0 / 451.5 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.3016, allocations: 12 kB / 451.5 MB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.3016, allocations: 4 kB / 451.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003192/0.3048, allocations: 0.9734 MB / 452.5 MB, free: 5.645 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.001607/0.3065, allocations: 1.339 MB / 453.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.309, allocations: 0.7364 MB / 454.6 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.3093, allocations: 152.8 kB / 454.7 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06911/0.3784, allocations: 37.54 MB / 492.3 MB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.3785, allocations: 42.55 kB / 492.3 MB, free: 9.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.534e-06/0.3785, allocations: 0 / 492.3 MB, free: 9.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004984/0.3835, allocations: 1.361 MB / 493.7 MB, free: 7.863 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.3835, allocations: 55.41 kB / 493.7 MB, free: 7.797 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3836, allocations: 121.8 kB / 493.8 MB, free: 7.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.3837, allocations: 33.7 kB / 493.9 MB, free: 7.629 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.382e-05/0.3838, allocations: 120.6 kB / 494 MB, free: 7.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.3839, allocations: 114.4 kB / 494.1 MB, free: 7.395 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.3842, allocations: 169.2 kB / 494.3 MB, free: 7.223 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.853e-05/0.3843, allocations: 322.8 kB / 494.6 MB, free: 6.898 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.3849, allocations: 339.8 kB / 494.9 MB, free: 6.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00067/0.3856, allocations: 411.2 kB / 495.3 MB, free: 6.137 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.3868, allocations: 0.7076 MB / 496 MB, free: 5.402 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.3869, allocations: 8 kB / 496 MB, free: 5.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001762/0.3886, allocations: 0.8757 MB / 496.9 MB, free: 4.512 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3887, allocations: 12.31 kB / 496.9 MB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3887, allocations: 0 / 496.9 MB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3887, allocations: 4 kB / 496.9 MB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000636/0.3893, allocations: 175.8 kB / 497.1 MB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3894, allocations: 7.938 kB / 497.1 MB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.3897, allocations: 36.02 kB / 497.1 MB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.3898, allocations: 63.92 kB / 497.2 MB, free: 4.219 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.0002212/0.39, allocations: 137.8 kB / 497.3 MB, free: 4.074 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3902, allocations: 19.75 kB / 497.4 MB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007007/0.3972, allocations: 7.97 MB / 0.4935 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.067e-05/0.3972, allocations: 27.95 kB / 0.4935 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.3973, allocations: 0 / 0.4935 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3973, allocations: 0 / 0.4935 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002883/0.4002, allocations: 3.6 MB / 0.497 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4002, allocations: 0 / 0.497 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006377/0.4008, allocations: 111.7 kB / 0.4971 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.4008, allocations: 3.938 kB / 0.4971 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.4009, allocations: 15.98 kB / 0.4972 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.4009, allocations: 4 kB / 0.4972 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4009, allocations: 4 kB / 0.4972 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.4032, allocations: 1.831 MB / 0.499 GB, free: 6.191 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.864e-05/0.4033, allocations: 148.1 kB / 0.4991 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.676e-05/0.4034, allocations: 11.94 kB / 0.4991 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.4037, allocations: 20.05 kB / 0.4991 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.678e-05/0.4038, allocations: 27.91 kB / 0.4991 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.443e-05/0.4038, allocations: 19.98 kB / 0.4992 GB, free: 5.949 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.818e-05/0.4039, allocations: 95.2 kB / 0.4993 GB, free: 5.855 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4039, allocations: 0 / 0.4993 GB, free: 5.855 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002398/0.4063, allocations: 0.9838 MB / 0.5002 GB, free: 4.871 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.006339/0.4126, allocations: 3.421 MB / 0.5036 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.4142, allocations: 0.8951 MB / 0.5044 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4142, allocations: 0 / 0.5044 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007251/0.415, allocations: 0.5923 MB / 0.505 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006121/0.4156, allocations: 92.02 kB / 0.5051 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007314/0.4229, allocations: 4.643 MB / 0.5096 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.4233, allocations: 0.8575 MB / 0.5105 GB, free: 10.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001792/0.4251, allocations: 1.78 MB / 0.5122 GB, free: 8.402 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.4256, allocations: 223.3 kB / 0.5124 GB, free: 8.184 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4256, allocations: 0 / 0.5124 GB, free: 8.184 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2329/0.6585, allocations: 45.57 MB / 0.5569 GB, free: 114 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/11, allocations: 5.797 kB / 0.5569 GB, free: 114 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches