Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009606/0.0009605, allocations: 90.92 kB / 16.33 MB, free: 6.398 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.001266/0.001266, allocations: 187.5 kB / 17.22 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2287/0.2287, allocations: 43.56 MB / 315.2 MB, free: 0.6289 MB / 254.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.0005046/0.0005046, allocations: 13.59 kB / 384.5 MB, free: 57.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1168, allocations: 58.86 MB / 443.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02502/0.1419, allocations: 26.15 MB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.1564, allocations: 12.39 MB / 481.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003711/0.1569, allocations: 11.88 kB / 482 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007088/0.1576, allocations: 202.8 kB / 482.2 MB, free: 15.11 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009001/0.1666, allocations: 2.847 MB / 485 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.1723, allocations: 1.824 MB / 486.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1734, allocations: 0.9861 MB / 487.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.1737, allocations: 204.9 kB / 488 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006371/0.1744, allocations: 378.4 kB / 488.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.1747, allocations: 262.9 kB / 488.6 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.1747, allocations: 16 kB / 488.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01374/0.1885, allocations: 6.816 MB / 495.5 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.1887, allocations: 75.72 kB / 495.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1889, allocations: 113.4 kB / 495.7 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005418/0.1943, allocations: 2.955 MB / 498.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1944, allocations: 0 / 498.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1944, allocations: 0 / 498.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.1944, allocations: 4 kB / 498.6 MB, free: 14.62 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.002986/0.1974, allocations: 1.165 MB / 499.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1974, allocations: 8.031 kB / 499.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/0.199, allocations: 219.3 kB / 0.4883 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.1994, allocations: 354.2 kB / 0.4886 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.1995, allocations: 24.66 kB / 0.4886 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.1995, allocations: 28 kB / 0.4887 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.2009, allocations: 0.5979 MB / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2009, allocations: 0 / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.201, allocations: 12 kB / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.201, allocations: 12 kB / 0.4893 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2024, allocations: 0.564 MB / 0.4898 GB, free: 11.52 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.002739/0.2052, allocations: 2.636 MB / 0.4924 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.2065, allocations: 494.1 kB / 0.4929 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003951/0.2069, allocations: 204.7 kB / 0.4931 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04193/0.2489, allocations: 24.42 MB / 0.5169 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.249, allocations: 38.56 kB / 0.517 GB, free: 12.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/0.249, allocations: 0 / 0.517 GB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002628/0.2516, allocations: 0.8566 MB / 0.5178 GB, free: 11.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.2517, allocations: 106.8 kB / 0.5179 GB, free: 11.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003658/0.2521, allocations: 312.5 kB / 0.5182 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.2521, allocations: 37.64 kB / 0.5182 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.2523, allocations: 204.1 kB / 0.5184 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.2524, allocations: 82.84 kB / 0.5185 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.639e-05/0.2524, allocations: 4 kB / 0.5185 GB, free: 10.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2526, allocations: 342.8 kB / 0.5188 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.2529, allocations: 155.9 kB / 0.519 GB, free: 10.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.2533, allocations: 243 kB / 0.5192 GB, free: 10.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.2538, allocations: 171.8 kB / 0.5194 GB, free: 10.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2538, allocations: 0 / 0.5194 GB, free: 10.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008948/0.2547, allocations: 452.8 kB / 0.5198 GB, free: 9.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.2547, allocations: 4.312 kB / 0.5198 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2547, allocations: 8 kB / 0.5198 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2547, allocations: 4 kB / 0.5198 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.2551, allocations: 83.89 kB / 0.5199 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.2551, allocations: 11.94 kB / 0.5199 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.2554, allocations: 59.66 kB / 0.52 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/0.2555, allocations: 16 kB / 0.52 GB, free: 9.383 MB / 414.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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.000202/0.2557, allocations: 169.7 kB / 0.5201 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.2558, allocations: 39.53 kB / 0.5202 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002549/0.2583, allocations: 1.936 MB / 0.5221 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.2584, allocations: 35.88 kB / 0.5221 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.2584, allocations: 0 / 0.5221 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2584, allocations: 3.953 kB / 0.5221 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.2595, allocations: 1.019 MB / 0.5231 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.2596, allocations: 0 / 0.5231 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.2598, allocations: 83.88 kB / 0.5232 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.2599, allocations: 4 kB / 0.5232 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.2599, allocations: 4 kB / 0.5232 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.2599, allocations: 4 kB / 0.5232 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2599, allocations: 3.984 kB / 0.5232 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.2613, allocations: 1.1 MB / 0.5243 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.2615, allocations: 219.6 kB / 0.5245 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.2615, allocations: 4 kB / 0.5245 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.2618, allocations: 51.81 kB / 0.5245 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.2619, allocations: 39.88 kB / 0.5246 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.262, allocations: 8 kB / 0.5246 GB, free: 4.562 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003852/0.2623, allocations: 323.1 kB / 0.5249 GB, free: 4.246 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2624, allocations: 0 / 0.5249 GB, free: 4.246 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003247/0.2656, allocations: 0.9955 MB / 0.5259 GB, free: 3.25 MB / 414.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: 19 ($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,Opening.y) * 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.003943/0.2696, allocations: 1.165 MB / 0.527 GB, free: 2.074 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.2707, allocations: 0.6207 MB / 0.5276 GB, free: 1.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2707, allocations: 0 / 0.5276 GB, free: 1.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006966/0.2714, allocations: 0.532 MB / 0.5281 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.2725, allocations: 195.8 kB / 0.5283 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2085/0.481, allocations: 1.904 MB / 0.5302 GB, free: 91.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.4815, allocations: 0.9619 MB / 0.5311 GB, free: 91.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.4817, allocations: 42.89 kB / 0.5312 GB, free: 91.17 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4817, allocations: 0 / 0.5312 GB, free: 91.17 MB / 414.1 MB Notification: Performance of Templates: time 0.03655/0.5182, allocations: 23.92 MB / 0.5545 GB, free: 79.99 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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 OMCppModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.o] Error 1