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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 95.62 kB / 17.63 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 201 kB / 18.54 MB, free: 5.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002396, allocations: 8 kB / 307.3 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1344, allocations: 51.49 MB / 358.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01483/0.1493, allocations: 12.42 MB / 371.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2979/0.4473, allocations: 14.35 MB / 385.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.4476, allocations: 1.062 kB / 385.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003755/0.448, allocations: 71.69 kB / 385.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003986/0.4484, allocations: 97.78 kB / 385.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02141/0.4698, allocations: 4.537 MB / 390.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.4705, allocations: 335.4 kB / 390.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.755e-05/0.4705, allocations: 14.94 kB / 390.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004955/0.471, allocations: 208.6 kB / 390.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.4712, allocations: 98.12 kB / 390.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.4713, allocations: 7 kB / 390.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01821/0.4895, allocations: 6.5 MB / 397.4 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.4897, allocations: 37.45 kB / 397.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.4898, allocations: 69 kB / 397.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00746/0.4973, allocations: 2.625 MB / 400.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.4974, allocations: 2.531 kB / 400.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4974, allocations: 3.938 kB / 400.2 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.4974, allocations: 0 / 400.2 MB, free: 0.6367 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.004368/0.5018, allocations: 0.9577 MB / 401.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.5018, allocations: 8.594 kB / 401.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.5032, allocations: 182.9 kB / 401.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.5035, allocations: 260.3 kB / 401.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.5036, allocations: 21.22 kB / 401.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.5036, allocations: 21.03 kB / 401.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002804/0.5064, allocations: 0.9103 MB / 402.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.5065, allocations: 7.938 kB / 402.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.5065, allocations: 11.25 kB / 402.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.5065, allocations: 4.438 kB / 402.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.5094, allocations: 0.983 MB / 403.5 MB, free: 14.41 MB / 318.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.00181/0.5113, allocations: 1.346 MB / 404.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.5136, allocations: 0.733 MB / 405.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.5139, allocations: 158.8 kB / 405.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07804/0.592, allocations: 42.37 MB / 448.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.333e-05/0.5921, allocations: 38.84 kB / 448.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.877e-06/0.5921, allocations: 0 / 448.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004913/0.597, allocations: 1.376 MB / 449.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.5971, allocations: 55.34 kB / 449.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.5972, allocations: 121.9 kB / 449.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.5973, allocations: 33.7 kB / 449.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.436e-05/0.5974, allocations: 112.7 kB / 449.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.5975, allocations: 126.3 kB / 450 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.5976, allocations: 8 kB / 450 MB, free: 11.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.5977, allocations: 326.8 kB / 450.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006119/0.5984, allocations: 343.6 kB / 450.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.599, allocations: 407.5 kB / 451 MB, free: 10.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006359/0.5997, allocations: 339.9 kB / 451.4 MB, free: 9.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5997, allocations: 0 / 451.4 MB, free: 9.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001655/0.6013, allocations: 0.8758 MB / 452.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.6014, allocations: 4.375 kB / 452.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.6014, allocations: 7.938 kB / 452.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.6014, allocations: 4 kB / 452.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006185/0.602, allocations: 184 kB / 452.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.6021, allocations: 11.94 kB / 452.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.6024, allocations: 40.73 kB / 452.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.6025, allocations: 63.94 kB / 452.5 MB, free: 8.688 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.6027, allocations: 138.5 kB / 452.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.329e-05/0.6028, allocations: 11.91 kB / 452.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007976/0.6108, allocations: 7.981 MB / 460.7 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/0.6109, allocations: 27.95 kB / 460.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.6109, allocations: 11.89 kB / 460.7 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.6109, allocations: 3.984 kB / 460.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.6142, allocations: 3.596 MB / 464.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.6142, allocations: 3.938 kB / 464.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005843/0.6148, allocations: 111.8 kB / 464.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.6149, allocations: 0 / 464.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.6149, allocations: 11.98 kB / 464.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.6149, allocations: 4 kB / 464.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6149, allocations: 0 / 464.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.6174, allocations: 1.858 MB / 466.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.6175, allocations: 148.2 kB / 466.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.6176, allocations: 8 kB / 466.5 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/0.6179, allocations: 19.98 kB / 466.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.621e-05/0.618, allocations: 31.95 kB / 466.5 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/0.618, allocations: 15.94 kB / 466.5 MB, free: 10.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.743e-05/0.6181, allocations: 99.16 kB / 466.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6181, allocations: 0 / 466.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004146/0.6223, allocations: 0.9955 MB / 467.6 MB, free: 9.305 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005154/0.6274, allocations: 1.147 MB / 468.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.6294, allocations: 0.9035 MB / 469.7 MB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.6294, allocations: 0.5 kB / 469.7 MB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008436/0.6303, allocations: 0.5993 MB / 470.3 MB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.6309, allocations: 86.66 kB / 470.3 MB, free: 6.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.6333, allocations: 1.646 MB / 472 MB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.6338, allocations: 0.8653 MB / 472.9 MB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.6341, allocations: 91.36 kB / 472.9 MB, free: 3.906 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.6341, allocations: 0 / 472.9 MB, free: 3.906 MB / 382.1 MB Notification: Performance of Templates: time 0.04093/0.6751, allocations: 24.1 MB / 497 MB, free: 11.74 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStatesCalcHelperMain.o OMCppModelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStatesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStatesCalcHelperMain.o] Error 1