Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 92.09 kB / 17.63 MB, free: 6.152 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.001503/0.001503, allocations: 180.8 kB / 18.52 MB, free: 5.32 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.555/1.555, allocations: 223.2 MB / 242.5 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2539/0.2539, allocations: 44.22 MB / 337.9 MB, free: 2.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 11.94 kB / 410.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1598, allocations: 61.92 MB / 472.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03066/0.1905, allocations: 26.16 MB / 498.3 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01663/0.2072, allocations: 12.41 MB / 0.4988 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000544/0.2078, allocations: 15.88 kB / 0.4988 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007665/0.2086, allocations: 198.8 kB / 0.499 GB, free: 6.844 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.01006/0.2187, allocations: 2.848 MB / 0.5018 GB, free: 4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006756/0.2254, allocations: 1.839 MB / 0.5036 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.227, allocations: 0.9937 MB / 0.5045 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003906/0.2274, allocations: 208.9 kB / 0.5047 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008021/0.2282, allocations: 378.4 kB / 0.5051 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.2285, allocations: 262.9 kB / 0.5053 GB, free: 344 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.2286, allocations: 16 kB / 0.5054 GB, free: 328 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3875/0.6161, allocations: 6.815 MB / 0.512 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002924/0.6164, allocations: 80.75 kB / 0.5121 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002929/0.6167, allocations: 104.4 kB / 0.5122 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009768/0.6265, allocations: 2.957 MB / 0.5151 GB, free: 15.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.6266, allocations: 0.5 kB / 0.5151 GB, free: 15.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6266, allocations: 0.5 kB / 0.5151 GB, free: 15.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.6266, allocations: 0 / 0.5151 GB, free: 15.42 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006197/0.6328, allocations: 1.183 MB / 0.5162 GB, free: 14.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.6329, allocations: 9.094 kB / 0.5162 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002585/0.6354, allocations: 222.7 kB / 0.5165 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000764/0.6362, allocations: 355 kB / 0.5168 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.6363, allocations: 25.62 kB / 0.5168 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.675e-05/0.6364, allocations: 29.44 kB / 0.5168 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.6381, allocations: 0.6187 MB / 0.5174 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.6381, allocations: 0.9375 kB / 0.5174 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.6381, allocations: 15.69 kB / 0.5175 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.6382, allocations: 7.562 kB / 0.5175 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.6398, allocations: 0.5892 MB / 0.518 GB, free: 14.32 MB / 382.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.003043/0.6429, allocations: 2.636 MB / 0.5206 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.6444, allocations: 0.5006 MB / 0.5211 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.6449, allocations: 220.7 kB / 0.5213 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04259/0.6875, allocations: 24.43 MB / 0.5452 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.692e-05/0.6876, allocations: 32.88 kB / 0.5452 GB, free: 10.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.355e-06/0.6877, allocations: 4 kB / 0.5452 GB, free: 10.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003129/0.6908, allocations: 0.881 MB / 0.5461 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.6909, allocations: 108.8 kB / 0.5462 GB, free: 9.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.6914, allocations: 315.8 kB / 0.5465 GB, free: 9.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.6915, allocations: 29.33 kB / 0.5465 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.6917, allocations: 206.7 kB / 0.5467 GB, free: 9.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.6919, allocations: 82.8 kB / 0.5468 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.6919, allocations: 6.438 kB / 0.5468 GB, free: 9.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.6921, allocations: 347.6 kB / 0.5471 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004995/0.6926, allocations: 166.4 kB / 0.5473 GB, free: 8.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/0.6932, allocations: 261.2 kB / 0.5475 GB, free: 8.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004568/0.6936, allocations: 182 kB / 0.5477 GB, free: 8.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.6937, allocations: 4 kB / 0.5477 GB, free: 8.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001151/0.6948, allocations: 480.4 kB / 0.5482 GB, free: 8.238 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.6948, allocations: 8 kB / 0.5482 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.6949, allocations: 3.984 kB / 0.5482 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.6949, allocations: 5.453 kB / 0.5482 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003571/0.6953, allocations: 100.7 kB / 0.5483 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.6953, allocations: 4 kB / 0.5483 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.6959, allocations: 69.75 kB / 0.5483 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.696, allocations: 17.78 kB / 0.5484 GB, free: 8.055 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0003557/0.6964, allocations: 165.6 kB / 0.5485 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.6965, allocations: 35.62 kB / 0.5486 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.6999, allocations: 1.971 MB / 0.5505 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.75e-05/0.7, allocations: 30.17 kB / 0.5505 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.7, allocations: 0 / 0.5505 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.7, allocations: 3.984 kB / 0.5505 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.7016, allocations: 1.013 MB / 0.5515 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.7016, allocations: 0 / 0.5515 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.702, allocations: 95.42 kB / 0.5516 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.702, allocations: 0 / 0.5516 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.702, allocations: 12 kB / 0.5516 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.702, allocations: 3.75 kB / 0.5516 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.702, allocations: 0 / 0.5516 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.7038, allocations: 1.126 MB / 0.5527 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/0.7042, allocations: 228.3 kB / 0.5529 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.7042, allocations: 5.5 kB / 0.5529 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.7045, allocations: 47.16 kB / 0.553 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.7047, allocations: 35.19 kB / 0.553 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.7047, allocations: 18.97 kB / 0.553 GB, free: 4.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000406/0.7051, allocations: 328.9 kB / 0.5533 GB, free: 4.301 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7051, allocations: 0 / 0.5533 GB, free: 4.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005445/0.7106, allocations: 0.9875 MB / 0.5543 GB, free: 3.355 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.007156/0.7177, allocations: 1.166 MB / 0.5554 GB, free: 2.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.7193, allocations: 0.6536 MB / 0.5561 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.7193, allocations: 0 / 0.5561 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008601/0.7202, allocations: 0.5387 MB / 0.5566 GB, free: 1.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.7216, allocations: 210.7 kB / 0.5568 GB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.7244, allocations: 1.914 MB / 0.5587 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.725, allocations: 0.9641 MB / 0.5596 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.7252, allocations: 41.78 kB / 0.5597 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7252, allocations: 0 / 0.5597 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Templates: time 0.04667/0.7719, allocations: 23.99 MB / 0.5831 GB, free: 6.902 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinearCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinearCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinearCalcHelperMain.o] Error 1