Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007875/0.0007878, allocations: 90.11 kB / 17.63 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001008, allocations: 200.2 kB / 18.54 MB, free: 4.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.64/1.64, allocations: 227.3 MB / 246.6 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 11.98 kB / 307.3 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1511, allocations: 51.49 MB / 358.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3859/0.5371, allocations: 59.2 MB / 418 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03092/0.5681, allocations: 21.02 MB / 439 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.5706, allocations: 39.62 kB / 439 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002475/0.5731, allocations: 0.5785 MB / 439.6 MB, free: 11.33 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01724/0.5904, allocations: 4.613 MB / 444.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0101/0.6005, allocations: 2.775 MB / 447 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02359/0.6241, allocations: 14.03 MB / 461 MB, free: 5.898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.6257, allocations: 0.5805 MB / 461.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002358/0.6281, allocations: 0.9454 MB / 462.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.6295, allocations: 0.7973 MB / 463.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.6296, allocations: 56 kB / 463.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01527/0.6449, allocations: 7.203 MB / 470.6 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005/0.6454, allocations: 242.9 kB / 470.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006653/0.6461, allocations: 289 kB / 471.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008497/0.6546, allocations: 3.929 MB / 475.1 MB, free: 7.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.6546, allocations: 3.938 kB / 475.1 MB, free: 7.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.6547, allocations: 8 kB / 475.1 MB, free: 7.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.6547, allocations: 0 / 475.1 MB, free: 7.816 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006767/0.6615, allocations: 2.203 MB / 477.3 MB, free: 5.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.6615, allocations: 8.031 kB / 477.3 MB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004519/0.666, allocations: 0.6656 MB / 478 MB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/0.668, allocations: 0.9532 MB / 478.9 MB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-05/0.6681, allocations: 74.02 kB / 479 MB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.6682, allocations: 96 kB / 479.1 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003509/0.6717, allocations: 1.667 MB / 480.7 MB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.6718, allocations: 7.938 kB / 480.7 MB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.6719, allocations: 44 kB / 480.8 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.038e-05/0.6719, allocations: 32 kB / 480.8 MB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.6751, allocations: 1.455 MB / 482.3 MB, free: 372 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009606/0.6847, allocations: 8.404 MB / 490.7 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002953/0.6877, allocations: 1.69 MB / 492.4 MB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005862/0.6883, allocations: 403 kB / 492.8 MB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4034/1.092, allocations: 70.94 MB / 0.5505 GB, free: 136.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.734e-05/1.092, allocations: 46.09 kB / 0.5505 GB, free: 136.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.667e-06/1.092, allocations: 0 / 0.5505 GB, free: 136.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.007135/1.099, allocations: 2.034 MB / 0.5525 GB, free: 136.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/1.099, allocations: 192.8 kB / 0.5527 GB, free: 136.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/1.1, allocations: 0.9533 MB / 0.5536 GB, free: 136.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/1.101, allocations: 40.83 kB / 0.5537 GB, free: 136.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/1.101, allocations: 0.5666 MB / 0.5542 GB, free: 135.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/1.101, allocations: 280.1 kB / 0.5545 GB, free: 135.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.044e-05/1.101, allocations: 24.75 kB / 0.5545 GB, free: 135.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/1.101, allocations: 345.6 kB / 0.5549 GB, free: 135.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/1.102, allocations: 300.5 kB / 0.5551 GB, free: 135.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008382/1.103, allocations: 0.7367 MB / 0.5559 GB, free: 134.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000772/1.104, allocations: 411.2 kB / 0.5563 GB, free: 134.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/1.104, allocations: 9.594 kB / 0.5563 GB, free: 134.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002067/1.106, allocations: 1.234 MB / 0.5575 GB, free: 133.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/1.106, allocations: 11.88 kB / 0.5575 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/1.106, allocations: 19.98 kB / 0.5575 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002759/1.108, allocations: 0.5261 MB / 0.558 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009216/1.109, allocations: 276.5 kB / 0.5583 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009706/1.11, allocations: 1.381 MB / 0.5596 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/1.111, allocations: 159.3 kB / 0.5598 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.112, allocations: 67.31 kB / 0.5598 GB, free: 132 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005408/1.112, allocations: 299 kB / 0.5601 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/1.112, allocations: 126.5 kB / 0.5602 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/1.117, allocations: 4.499 MB / 0.5646 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-05/1.117, allocations: 44.28 kB / 0.5647 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/1.117, allocations: 0 / 0.5647 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/1.117, allocations: 9.469 kB / 0.5647 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005093/1.122, allocations: 4.934 MB / 0.5695 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/1.122, allocations: 0 / 0.5695 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/1.123, allocations: 171.7 kB / 0.5697 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00329/1.126, allocations: 1.598 MB / 0.5712 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-05/1.126, allocations: 20 kB / 0.5713 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/1.128, allocations: 1.758 MB / 0.573 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.128, allocations: 3.953 kB / 0.573 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/1.13, allocations: 2.014 MB / 0.5749 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004672/1.13, allocations: 357.8 kB / 0.5753 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/1.13, allocations: 16 kB / 0.5753 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005921/1.131, allocations: 63.77 kB / 0.5754 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/1.131, allocations: 52.48 kB / 0.5754 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/1.131, allocations: 37.3 kB / 0.5754 GB, free: 118.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009422/1.132, allocations: 0.8186 MB / 0.5762 GB, free: 117.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.132, allocations: 0 / 0.5762 GB, free: 117.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004793/1.137, allocations: 1.288 MB / 0.5775 GB, free: 116.6 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005517/1.143, allocations: 1.26 MB / 0.5787 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002821/1.145, allocations: 1.247 MB / 0.5799 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.145, allocations: 0 / 0.5799 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/1.147, allocations: 0.903 MB / 0.5808 GB, free: 113.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003655/1.15, allocations: 0.7142 MB / 0.5815 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/1.155, allocations: 3.763 MB / 0.5852 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/1.156, allocations: 1.309 MB / 0.5865 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/1.156, allocations: 123.4 kB / 0.5866 GB, free: 107.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.964e-06/1.156, allocations: 0 / 0.5866 GB, free: 107.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07183/1.228, allocations: 50.86 MB / 0.6363 GB, free: 56.63 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.o OMCppModelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittingsCalcHelperMain.o] Error 1