Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002649/0.002648, allocations: 352.1 kB / 15.95 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.621/3.621, allocations: 341.5 MB / 358.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003544/0.003544, allocations: 228.4 kB / 397.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4622/0.4622, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004609/0.0004611, allocations: 8 kB / 0.5592 GB, free: 53.44 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08721/0.0877, allocations: 48.71 MB / 0.6068 GB, free: 4.629 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.3839/0.4717, allocations: 75.4 MB / 0.6804 GB, free: 37.64 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04263/0.5144, allocations: 26.46 MB / 0.7062 GB, free: 11.16 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002492/0.5169, allocations: 63.44 kB / 0.7063 GB, free: 11.1 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003872/0.5208, allocations: 0.8778 MB / 0.7071 GB, free: 10.21 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01686/0.5377, allocations: 4.156 MB / 0.7112 GB, free: 6.066 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0226/0.5603, allocations: 5.968 MB / 0.717 GB, free: 172 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006813/0.5672, allocations: 3.974 MB / 0.7209 GB, free: 12.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001785/0.569, allocations: 0.778 MB / 0.7217 GB, free: 11.4 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003153/0.5722, allocations: 1.167 MB / 0.7228 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002301/0.5745, allocations: 0.9842 MB / 0.7238 GB, free: 9.242 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003311/0.5749, allocations: 60 kB / 0.7238 GB, free: 9.184 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02376/0.5986, allocations: 7.687 MB / 0.7313 GB, free: 1.488 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007639/0.5994, allocations: 306.8 kB / 0.7316 GB, free: 1.188 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007051/0.6002, allocations: 337 kB / 0.7319 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.612, allocations: 4.599 MB / 0.7364 GB, free: 12.24 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.612, allocations: 0 / 0.7364 GB, free: 12.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.612, allocations: 0 / 0.7364 GB, free: 12.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.547e-05/0.6121, allocations: 0 / 0.7364 GB, free: 12.24 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009074/0.6212, allocations: 2.37 MB / 0.7388 GB, free: 9.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.6212, allocations: 8.031 kB / 0.7388 GB, free: 9.809 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00983/0.6311, allocations: 0.8357 MB / 0.7396 GB, free: 8.973 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.6337, allocations: 0.9392 MB / 0.7405 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.6339, allocations: 110.3 kB / 0.7406 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.6342, allocations: 112 kB / 0.7407 GB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009127/0.6433, allocations: 2.271 MB / 0.7429 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.336e-05/0.6434, allocations: 3.938 kB / 0.7429 GB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/0.6437, allocations: 52 kB / 0.743 GB, free: 5.293 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.262e-05/0.6437, allocations: 32 kB / 0.743 GB, free: 5.262 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.654, allocations: 2.174 MB / 0.7451 GB, free: 3.078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01736/0.6714, allocations: 10.1 MB / 0.755 GB, free: 8.156 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007495/0.679, allocations: 1.547 MB / 0.7565 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.6808, allocations: 478.6 kB / 0.757 GB, free: 6.145 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3346/1.015, allocations: 17.21 MB / 0.7738 GB, free: 120.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/1.016, allocations: 41.25 kB / 0.7738 GB, free: 120.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.627e-06/1.016, allocations: 0 / 0.7738 GB, free: 120.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.01275/1.028, allocations: 2.543 MB / 0.7763 GB, free: 120.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/1.028, allocations: 277.5 kB / 0.7766 GB, free: 120.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/1.03, allocations: 0.9693 MB / 0.7775 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001875/1.031, allocations: 41.52 kB / 0.7775 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005859/1.031, allocations: 0.6844 MB / 0.7782 GB, free: 120 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/1.032, allocations: 277 kB / 0.7785 GB, free: 119.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.901e-05/1.032, allocations: 25.97 kB / 0.7785 GB, free: 119.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/1.032, allocations: 362.9 kB / 0.7789 GB, free: 119.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/1.034, allocations: 470 kB / 0.7793 GB, free: 119.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/1.036, allocations: 1.06 MB / 0.7803 GB, free: 118.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/1.039, allocations: 0.5831 MB / 0.7809 GB, free: 118.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-05/1.039, allocations: 10.78 kB / 0.7809 GB, free: 118.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.005974/1.045, allocations: 1.596 MB / 0.7825 GB, free: 118.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004404/1.045, allocations: 0.6337 MB / 0.7831 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/1.045, allocations: 18.41 kB / 0.7831 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.708e-05/1.045, allocations: 29.17 kB / 0.7831 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/1.048, allocations: 398.7 kB / 0.7835 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.175e-05/1.048, allocations: 43.09 kB / 0.7836 GB, free: 117.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/1.05, allocations: 259.8 kB / 0.7838 GB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002703/1.051, allocations: 82.42 kB / 0.7839 GB, free: 117.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/1.051, allocations: 6.094 kB / 0.7839 GB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005218/1.056, allocations: 1.447 MB / 0.7853 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.964e-05/1.056, allocations: 19.69 kB / 0.7853 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-05/1.056, allocations: 28.66 kB / 0.7854 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002426/1.059, allocations: 389.8 kB / 0.7857 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.182e-05/1.059, allocations: 39.3 kB / 0.7858 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002021/1.061, allocations: 217.3 kB / 0.786 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002113/1.061, allocations: 83.36 kB / 0.786 GB, free: 116.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.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 (167): * Single equations (assignments): 167 * 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.000949/1.062, allocations: 413.3 kB / 0.7864 GB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003125/1.062, allocations: 126.7 kB / 0.7866 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.073, allocations: 5.936 MB / 0.7924 GB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-05/1.073, allocations: 12.52 kB / 0.7924 GB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.073, allocations: 3.625 kB / 0.7924 GB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.074, allocations: 0.5185 MB / 0.7929 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000358/1.074, allocations: 21.91 kB / 0.7929 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.076, allocations: 192.1 kB / 0.7931 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/1.076, allocations: 80.34 kB / 0.7932 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00554/1.082, allocations: 2.872 MB / 0.796 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005299/1.087, allocations: 2.877 MB / 0.7988 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002441/1.09, allocations: 1.369 MB / 0.8001 GB, free: 109.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001458/1.091, allocations: 0.7473 MB / 0.8008 GB, free: 109 MB / 410.7 MB Notification: Performance of Backend: time 8.22e-07/1.091, allocations: 0 / 0.8008 GB, free: 109 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01576/1.107, allocations: 3.646 MB / 0.8044 GB, free: 105.8 MB / 410.7 MB Notification: Performance of SimCode: time 0.008558/1.116, allocations: 4.409 MB / 0.8087 GB, free: 101.4 MB / 410.7 MB Notification: Performance of Templates: time 0.2179/1.334, allocations: 67.97 MB / 0.8751 GB, free: 33.88 MB / 410.7 MB