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.0009692/0.000969, allocations: 106.9 kB / 16.92 MB, free: 5.789 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.0009654/0.0009654, allocations: 191.5 kB / 17.85 MB, free: 5.16 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.247/1.247, allocations: 222.9 MB / 241.6 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 51.19 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.0826, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01484/0.09747, allocations: 13.33 MB / 363.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1574/0.255, allocations: 15.54 MB / 379 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2551, allocations: 1.375 kB / 379 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.2554, allocations: 85.62 kB / 379.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.2557, allocations: 112.9 kB / 379.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01458/0.2703, allocations: 5.959 MB / 385.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004054/0.2707, allocations: 343.7 kB / 385.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.362e-05/0.2707, allocations: 16.44 kB / 385.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.2711, allocations: 222.2 kB / 385.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.2713, allocations: 109.1 kB / 385.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.2713, allocations: 14.03 kB / 385.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01246/0.2838, allocations: 6.602 MB / 392.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.2839, allocations: 56.66 kB / 392.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.284, allocations: 104.5 kB / 392.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007017/0.2911, allocations: 3.912 MB / 396.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2911, allocations: 0 / 396.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2911, allocations: 0 / 396.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.2911, allocations: 0 / 396.5 MB, free: 3.246 MB / 302.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.002327/0.2934, allocations: 0.9904 MB / 397.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2935, allocations: 10.34 kB / 397.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.2935, allocations: 55.8 kB / 397.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001295/0.2948, allocations: 176.6 kB / 397.8 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.295, allocations: 262.7 kB / 398 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2951, allocations: 18.66 kB / 398 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.2951, allocations: 17.94 kB / 398.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/0.2979, allocations: 0.913 MB / 399 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2979, allocations: 0 / 399 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.2979, allocations: 10.62 kB / 399 MB, free: 1.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2979, allocations: 9.375 kB / 399 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002831/0.3008, allocations: 0.9672 MB / 400 MB, free: 0.9453 MB / 302.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.001179/0.302, allocations: 1.351 MB / 401.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.3044, allocations: 0.7312 MB / 402 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.3046, allocations: 154.2 kB / 402.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07095/0.3756, allocations: 37.4 MB / 439.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3757, allocations: 34.56 kB / 439.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 3.767e-06/0.3757, allocations: 3.984 kB / 439.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004951/0.3806, allocations: 1.369 MB / 441 MB, free: 4.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.3807, allocations: 55.41 kB / 441.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.776e-05/0.3808, allocations: 117.8 kB / 441.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.586e-05/0.3809, allocations: 37.69 kB / 441.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.503e-05/0.3809, allocations: 116.6 kB / 441.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.381, allocations: 109.3 kB / 441.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/0.3813, allocations: 169.5 kB / 441.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/0.3814, allocations: 330.8 kB / 441.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005793/0.382, allocations: 335.8 kB / 442.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006496/0.3826, allocations: 403.3 kB / 442.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.3839, allocations: 0.7153 MB / 443.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3839, allocations: 0 / 443.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001687/0.3856, allocations: 0.8721 MB / 444.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3856, allocations: 8 kB / 444.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3856, allocations: 4 kB / 444.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3856, allocations: 7.938 kB / 444.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.3863, allocations: 179.7 kB / 444.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.3863, allocations: 4.375 kB / 444.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.3866, allocations: 31.77 kB / 444.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-05/0.3867, allocations: 59.94 kB / 444.5 MB, free: 0.543 MB / 350.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.0002001/0.3869, allocations: 149.6 kB / 444.7 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.3871, allocations: 15.81 kB / 444.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006665/0.3937, allocations: 7.974 MB / 452.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.3938, allocations: 27.95 kB / 452.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3938, allocations: 4 kB / 452.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3938, allocations: 7.984 kB / 452.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.3964, allocations: 3.601 MB / 456.3 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.3964, allocations: 0 / 456.3 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006118/0.3971, allocations: 107.6 kB / 456.4 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3971, allocations: 4 kB / 456.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3971, allocations: 19.92 kB / 456.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3971, allocations: 0 / 456.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3971, allocations: 4 kB / 456.4 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.3993, allocations: 1.835 MB / 458.3 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3994, allocations: 140.2 kB / 458.4 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.688e-05/0.3994, allocations: 15.94 kB / 458.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.3997, allocations: 8 kB / 458.4 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/0.3998, allocations: 31.95 kB / 458.4 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.3999, allocations: 19.98 kB / 458.5 MB, free: 2.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.148e-05/0.3999, allocations: 99.27 kB / 458.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3999, allocations: 0 / 458.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003253/0.4032, allocations: 0.9876 MB / 459.6 MB, free: 1.195 MB / 366.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.00665/0.4099, allocations: 3.41 MB / 463 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.4116, allocations: 0.9262 MB / 463.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4116, allocations: 3.938 kB / 463.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006553/0.4123, allocations: 0.588 MB / 464.5 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006188/0.4129, allocations: 82.61 kB / 464.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00662/0.4195, allocations: 4.66 MB / 469.2 MB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.4199, allocations: 0.8536 MB / 470.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001679/0.4216, allocations: 1.791 MB / 471.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003986/0.422, allocations: 219.3 kB / 472.1 MB, free: 4.574 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.422, allocations: 0 / 472.1 MB, free: 4.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.87/2.292, allocations: 45.61 MB / 0.5056 GB, free: 6.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/12.95, allocations: 7.938 kB / 0.5056 GB, free: 6.988 MB / 430.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