Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001056/0.001056, allocations: 89.83 kB / 17.63 MB, free: 5.719 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.001554/0.001554, allocations: 182.6 kB / 18.52 MB, free: 5.172 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.486/1.486, allocations: 223.3 MB / 242.5 MB, free: 300 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.2409/0.2409, allocations: 44.23 MB / 337.9 MB, free: 2.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003461, allocations: 8 kB / 410.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1595, allocations: 61.92 MB / 472.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02786/0.1874, allocations: 26.14 MB / 498.3 MB, free: 3.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.2043, allocations: 12.4 MB / 0.4988 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000525/0.2048, allocations: 11.88 kB / 0.4988 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008246/0.2057, allocations: 206.8 kB / 0.499 GB, free: 6.855 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.01097/0.2167, allocations: 2.851 MB / 0.5017 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006919/0.2236, allocations: 1.828 MB / 0.5035 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.2252, allocations: 0.9898 MB / 0.5045 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003891/0.2256, allocations: 193 kB / 0.5047 GB, free: 1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007433/0.2264, allocations: 386.3 kB / 0.505 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.2267, allocations: 262.9 kB / 0.5053 GB, free: 372 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.2268, allocations: 16 kB / 0.5053 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3905/0.6172, allocations: 6.816 MB / 0.512 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.6175, allocations: 80.45 kB / 0.512 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002671/0.6178, allocations: 104.6 kB / 0.5121 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009558/0.6274, allocations: 2.957 MB / 0.515 GB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.6274, allocations: 0 / 0.515 GB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.6274, allocations: 7.5 kB / 0.515 GB, free: 15.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.6274, allocations: 0 / 0.515 GB, free: 15.41 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.0058/0.6332, allocations: 1.161 MB / 0.5162 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.6333, allocations: 9.406 kB / 0.5162 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001698/0.635, allocations: 217.2 kB / 0.5164 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.6356, allocations: 354.5 kB / 0.5167 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.6356, allocations: 27.56 kB / 0.5168 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.6357, allocations: 30.97 kB / 0.5168 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.6372, allocations: 0.5986 MB / 0.5174 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.6373, allocations: 1.156 kB / 0.5174 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.498e-05/0.6373, allocations: 15.31 kB / 0.5174 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.6373, allocations: 8.656 kB / 0.5174 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.6389, allocations: 0.5621 MB / 0.5179 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.003087/0.642, allocations: 2.639 MB / 0.5205 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.6436, allocations: 498.6 kB / 0.521 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.644, allocations: 205 kB / 0.5212 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04654/0.6905, allocations: 24.43 MB / 0.545 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.6907, allocations: 36.97 kB / 0.5451 GB, free: 10.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.426e-06/0.6907, allocations: 0 / 0.5451 GB, free: 10.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002781/0.6935, allocations: 0.8417 MB / 0.5459 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/0.6935, allocations: 108.8 kB / 0.546 GB, free: 9.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.694, allocations: 304.2 kB / 0.5463 GB, free: 9.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.899e-05/0.694, allocations: 36.62 kB / 0.5463 GB, free: 9.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.6942, allocations: 207.4 kB / 0.5465 GB, free: 9.625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.076e-05/0.6943, allocations: 85.03 kB / 0.5466 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.6943, allocations: 5.5 kB / 0.5466 GB, free: 9.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.6945, allocations: 346.1 kB / 0.5469 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.6949, allocations: 152.5 kB / 0.5471 GB, free: 9.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.6955, allocations: 248.2 kB / 0.5473 GB, free: 8.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.6959, allocations: 168.6 kB / 0.5475 GB, free: 8.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.6959, allocations: 4 kB / 0.5475 GB, free: 8.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009445/0.6969, allocations: 442.3 kB / 0.5479 GB, free: 8.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.6969, allocations: 13.75 kB / 0.5479 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.697, allocations: 7.938 kB / 0.5479 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.697, allocations: 4 kB / 0.5479 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.6974, allocations: 89.28 kB / 0.548 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.6975, allocations: 8.859 kB / 0.548 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004125/0.6979, allocations: 60.33 kB / 0.5481 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/0.6979, allocations: 14.19 kB / 0.5481 GB, free: 8.25 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: 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.000214/0.6982, allocations: 168.9 kB / 0.5483 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.6982, allocations: 31.62 kB / 0.5483 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.7008, allocations: 1.937 MB / 0.5502 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.7008, allocations: 29.7 kB / 0.5502 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7009, allocations: 0 / 0.5502 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.7009, allocations: 3.984 kB / 0.5502 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.702, allocations: 1.017 MB / 0.5512 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.702, allocations: 3.938 kB / 0.5512 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.7023, allocations: 86.81 kB / 0.5513 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.7024, allocations: 0 / 0.5513 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.7024, allocations: 7.75 kB / 0.5513 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.7024, allocations: 1.969 kB / 0.5513 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7024, allocations: 4 kB / 0.5513 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.7038, allocations: 1.104 MB / 0.5524 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.7041, allocations: 214.1 kB / 0.5526 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.7041, allocations: 9 kB / 0.5526 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.7044, allocations: 42.59 kB / 0.5526 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.7045, allocations: 30.64 kB / 0.5527 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.7046, allocations: 17.05 kB / 0.5527 GB, free: 4.816 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003796/0.705, allocations: 322.2 kB / 0.553 GB, free: 4.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.705, allocations: 0 / 0.553 GB, free: 4.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006201/0.7112, allocations: 0.9972 MB / 0.554 GB, free: 3.617 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: 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.008676/0.7199, allocations: 1.178 MB / 0.5551 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.7215, allocations: 0.6178 MB / 0.5557 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.7215, allocations: 7.438 kB / 0.5557 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.7223, allocations: 0.5221 MB / 0.5562 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.7238, allocations: 209.1 kB / 0.5564 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.727, allocations: 1.91 MB / 0.5583 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009057/0.7279, allocations: 0.9675 MB / 0.5593 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.7281, allocations: 43.42 kB / 0.5593 GB, free: 14.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.373e-06/0.7281, allocations: 0 / 0.5593 GB, free: 14.96 MB / 414.1 MB Notification: Performance of Templates: time 0.05066/0.7787, allocations: 23.94 MB / 0.5827 GB, free: 7.25 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile make -j1 -f ModelicaTest_4.0.0_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/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.TestValveDiscreteCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.o] Error 1