Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001036, allocations: 90.19 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008924/0.0008924, allocations: 196.7 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.636/1.636, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2687/0.2687, allocations: 45.92 MB / 344.7 MB, free: 12.03 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.0003479, allocations: 12 kB / 418.7 MB, free: 20.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1677, allocations: 63.46 MB / 482.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0304/0.1981, allocations: 26.2 MB / 0.4964 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3716/0.5697, allocations: 12.4 MB / 0.5085 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005285/0.5703, allocations: 11.12 kB / 0.5085 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000804/0.5711, allocations: 201.2 kB / 0.5087 GB, free: 11.59 MB / 382.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. Notification: Performance of NFTyping.typeBindings: time 0.01027/0.5814, allocations: 2.853 MB / 0.5115 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007121/0.5885, allocations: 1.841 MB / 0.5133 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001804/0.5904, allocations: 0.9823 MB / 0.5143 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004562/0.5908, allocations: 200.5 kB / 0.5145 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009225/0.5918, allocations: 385.8 kB / 0.5148 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004146/0.5922, allocations: 259.5 kB / 0.5151 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.5922, allocations: 15.41 kB / 0.5151 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01902/0.6113, allocations: 6.831 MB / 0.5218 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003045/0.6116, allocations: 75.73 kB / 0.5218 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.612, allocations: 108 kB / 0.5219 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009443/0.6215, allocations: 2.961 MB / 0.5248 GB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.6215, allocations: 0 / 0.5248 GB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.145e-06/0.6215, allocations: 0 / 0.5248 GB, free: 10.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.6215, allocations: 1.375 kB / 0.5248 GB, free: 10.63 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.005765/0.6273, allocations: 1.171 MB / 0.526 GB, free: 9.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.6274, allocations: 8.469 kB / 0.526 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.6292, allocations: 221.6 kB / 0.5262 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.6298, allocations: 351.7 kB / 0.5265 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/0.6298, allocations: 27.08 kB / 0.5265 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.6299, allocations: 29.12 kB / 0.5266 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.6315, allocations: 0.5977 MB / 0.5272 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.6315, allocations: 3.984 kB / 0.5272 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.6316, allocations: 14.62 kB / 0.5272 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.6316, allocations: 11.53 kB / 0.5272 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.6331, allocations: 0.5623 MB / 0.5277 GB, free: 9.09 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.002766/0.6359, allocations: 2.63 MB / 0.5303 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.6373, allocations: 491.3 kB / 0.5308 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.6378, allocations: 204.3 kB / 0.531 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04928/0.687, allocations: 27 MB / 0.5573 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.92e-05/0.6871, allocations: 41.45 kB / 0.5574 GB, free: 14.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.565e-06/0.6871, allocations: 0 / 0.5574 GB, free: 14.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00279/0.6899, allocations: 0.844 MB / 0.5582 GB, free: 13.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.69, allocations: 110.1 kB / 0.5583 GB, free: 13.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.6904, allocations: 309.2 kB / 0.5586 GB, free: 12.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.6905, allocations: 32.95 kB / 0.5586 GB, free: 12.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.6906, allocations: 207.6 kB / 0.5588 GB, free: 12.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.6907, allocations: 83.05 kB / 0.5589 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.938e-05/0.6907, allocations: 10.25 kB / 0.5589 GB, free: 12.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.6909, allocations: 335.2 kB / 0.5592 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.6913, allocations: 157.8 kB / 0.5594 GB, free: 12.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.6917, allocations: 253.1 kB / 0.5596 GB, free: 12.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.6921, allocations: 169.1 kB / 0.5598 GB, free: 11.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6921, allocations: 0 / 0.5598 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000944/0.6931, allocations: 445.7 kB / 0.5602 GB, free: 11.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.6931, allocations: 4 kB / 0.5602 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.6931, allocations: 11.94 kB / 0.5602 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.6932, allocations: 4 kB / 0.5602 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.6935, allocations: 89.02 kB / 0.5603 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.6935, allocations: 7.938 kB / 0.5603 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.6939, allocations: 65.39 kB / 0.5604 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.694, allocations: 14.05 kB / 0.5604 GB, free: 11.36 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.0002233/0.6942, allocations: 163.6 kB / 0.5606 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.6943, allocations: 39.53 kB / 0.5606 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002672/0.6969, allocations: 1.932 MB / 0.5625 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-05/0.697, allocations: 33.16 kB / 0.5625 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.697, allocations: 0 / 0.5625 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.697, allocations: 7.984 kB / 0.5625 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.6984, allocations: 1.015 MB / 0.5635 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.6984, allocations: 0 / 0.5635 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.6987, allocations: 75.19 kB / 0.5636 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.6987, allocations: 7.844 kB / 0.5636 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.6987, allocations: 8.562 kB / 0.5636 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.6988, allocations: 5.25 kB / 0.5636 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.6988, allocations: 3.953 kB / 0.5636 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.7005, allocations: 1.103 MB / 0.5647 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.7008, allocations: 221.2 kB / 0.5649 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.7008, allocations: 2.875 kB / 0.5649 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.7011, allocations: 44.81 kB / 0.5649 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.7012, allocations: 42.83 kB / 0.565 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.7013, allocations: 13.8 kB / 0.565 GB, free: 7.898 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004067/0.7017, allocations: 323.8 kB / 0.5653 GB, free: 7.656 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7017, allocations: 0 / 0.5653 GB, free: 7.656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006873/0.7086, allocations: 0.9948 MB / 0.5663 GB, free: 6.707 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.007702/0.7163, allocations: 1.178 MB / 0.5674 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.7178, allocations: 0.6249 MB / 0.568 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.7178, allocations: 0 / 0.568 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006969/0.7185, allocations: 0.53 MB / 0.5686 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.7198, allocations: 202.8 kB / 0.5688 GB, free: 4.746 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.7224, allocations: 1.91 MB / 0.5706 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005961/0.723, allocations: 0.9595 MB / 0.5716 GB, free: 2.059 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.7231, allocations: 42.19 kB / 0.5716 GB, free: 2.02 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7231, allocations: 0 / 0.5716 GB, free: 2.02 MB / 414.1 MB Notification: Performance of Templates: time 0.04514/0.7683, allocations: 24.05 MB / 0.5951 GB, free: 10.14 MB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile make -j1 -f ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscreteCalcHelperMain.o] Error 1