Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008555/0.0008558, allocations: 93.45 kB / 17.96 MB, free: 5.645 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.001101/0.001101, allocations: 177.6 kB / 18.86 MB, free: 4.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 225 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000568/0.0005684, allocations: 12 kB / 282 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1354, allocations: 47.58 MB / 329.6 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3471/0.4826, allocations: 63.3 MB / 392.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02873/0.5114, allocations: 23.29 MB / 416.2 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.5135, allocations: 32.72 kB / 416.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.5155, allocations: 0.6325 MB / 416.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01841/0.534, allocations: 4.75 MB / 421.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01091/0.5449, allocations: 3.017 MB / 424.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01549/0.5604, allocations: 9.624 MB / 434.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.562, allocations: 0.5993 MB / 434.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/0.5646, allocations: 0.9485 MB / 435.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.5658, allocations: 0.8366 MB / 436.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.5659, allocations: 48 kB / 436.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01952/0.5854, allocations: 7.536 MB / 444.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005111/0.586, allocations: 254.4 kB / 444.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.5873, allocations: 0.6945 MB / 445.2 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009744/0.597, allocations: 3.945 MB / 449.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.5971, allocations: 4 kB / 449.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5971, allocations: 0 / 449.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.5971, allocations: 0 / 449.1 MB, free: 1.566 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007087/0.6042, allocations: 2.191 MB / 451.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.6043, allocations: 12.03 kB / 451.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004627/0.6089, allocations: 0.6548 MB / 452 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.611, allocations: 0.9851 MB / 452.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.6111, allocations: 74.58 kB / 453 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.6112, allocations: 103.9 kB / 453.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.6149, allocations: 1.675 MB / 454.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.615, allocations: 3.938 kB / 454.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.6151, allocations: 48 kB / 454.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.6151, allocations: 28 kB / 454.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003162/0.6183, allocations: 1.467 MB / 456.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009307/0.6276, allocations: 8.411 MB / 464.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002935/0.6306, allocations: 1.702 MB / 466.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006012/0.6312, allocations: 399.6 kB / 466.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1296/0.7608, allocations: 63.99 MB / 0.5184 GB, free: 7.434 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.348e-05/0.7609, allocations: 39.12 kB / 0.5184 GB, free: 7.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 4.087e-06/0.761, allocations: 0 / 0.5184 GB, free: 7.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.006142/0.7671, allocations: 2.006 MB / 0.5204 GB, free: 5.348 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.7672, allocations: 188.5 kB / 0.5206 GB, free: 5.121 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.7686, allocations: 0.9605 MB / 0.5215 GB, free: 4.145 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.318e-05/0.7687, allocations: 41.7 kB / 0.5215 GB, free: 4.098 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/0.7692, allocations: 0.5792 MB / 0.5221 GB, free: 3.516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002673/0.7695, allocations: 271.9 kB / 0.5224 GB, free: 3.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.7697, allocations: 101.7 kB / 0.5225 GB, free: 3.145 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.7699, allocations: 341.9 kB / 0.5228 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005526/0.7704, allocations: 306.5 kB / 0.5231 GB, free: 2.508 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.7714, allocations: 0.7453 MB / 0.5238 GB, free: 1.559 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.773, allocations: 1.101 MB / 0.5249 GB, free: 264 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.773, allocations: 4 kB / 0.5249 GB, free: 260 kB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002267/0.7753, allocations: 1.248 MB / 0.5261 GB, free: 15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.7754, allocations: 8 kB / 0.5261 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.7754, allocations: 16 kB / 0.5261 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003272/0.7787, allocations: 0.5238 MB / 0.5266 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.7797, allocations: 279.6 kB / 0.5269 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.7809, allocations: 1.379 MB / 0.5283 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.782, allocations: 154.7 kB / 0.5284 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.847e-05/0.7821, allocations: 71.98 kB / 0.5285 GB, free: 12.53 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005777/0.7827, allocations: 296 kB / 0.5288 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.7829, allocations: 122.5 kB / 0.5289 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.7893, allocations: 4.497 MB / 0.5333 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.278e-05/0.7894, allocations: 51.92 kB / 0.5333 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.7894, allocations: 0 / 0.5333 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7894, allocations: 3.984 kB / 0.5333 GB, free: 7.539 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007521/0.797, allocations: 4.953 MB / 0.5382 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.797, allocations: 4 kB / 0.5382 GB, free: 2.418 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008157/0.7978, allocations: 167.7 kB / 0.5383 GB, free: 2.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004071/0.8019, allocations: 1.594 MB / 0.5399 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.567e-05/0.802, allocations: 27.98 kB / 0.5399 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2695/1.071, allocations: 1.751 MB / 0.5416 GB, free: 174.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.072, allocations: 0 / 0.5416 GB, free: 174.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003484/1.075, allocations: 2.029 MB / 0.5436 GB, free: 173.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/1.076, allocations: 358.4 kB / 0.5439 GB, free: 173.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/1.076, allocations: 17.88 kB / 0.544 GB, free: 173.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007479/1.077, allocations: 65 kB / 0.544 GB, free: 173.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/1.077, allocations: 52.84 kB / 0.5441 GB, free: 173.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.13e-05/1.077, allocations: 37 kB / 0.5441 GB, free: 173.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001383/1.078, allocations: 0.8281 MB / 0.5449 GB, free: 173.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.078, allocations: 0 / 0.5449 GB, free: 173.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005523/1.084, allocations: 1.277 MB / 0.5462 GB, free: 173.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006674/1.09, allocations: 1.244 MB / 0.5474 GB, free: 173.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003579/1.094, allocations: 1.258 MB / 0.5486 GB, free: 172.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.094, allocations: 1.688 kB / 0.5486 GB, free: 172.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/1.096, allocations: 0.9119 MB / 0.5495 GB, free: 172.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004256/1.1, allocations: 0.6975 MB / 0.5502 GB, free: 172.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/1.106, allocations: 3.854 MB / 0.5539 GB, free: 170 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/1.107, allocations: 1.312 MB / 0.5552 GB, free: 169.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003734/1.108, allocations: 127.1 kB / 0.5553 GB, free: 169.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.823e-06/1.108, allocations: 0 / 0.5553 GB, free: 169.3 MB / 446.1 MB Notification: Performance of Templates: time 0.07545/1.183, allocations: 50.76 MB / 0.6049 GB, free: 123.6 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.o] Error 1