Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002648/0.002652, allocations: 366.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.84/3.84, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003551/0.003551, allocations: 233.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5424/0.5424, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000508/0.0005083, allocations: 8 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/0.09673, allocations: 54.88 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.4084/0.5052, allocations: 75.94 MB / 0.7543 GB, free: 8.133 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05053/0.5557, allocations: 26.71 MB / 0.7804 GB, free: 3.77 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002981/0.5588, allocations: 61.06 kB / 0.7804 GB, free: 3.734 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004509/0.5634, allocations: 0.8802 MB / 0.7813 GB, free: 2.988 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.2+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.01844/0.5819, allocations: 4.194 MB / 0.7854 GB, free: 15.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02735/0.6092, allocations: 6.041 MB / 0.7913 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007459/0.6167, allocations: 4.021 MB / 0.7952 GB, free: 6.324 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.6189, allocations: 0.7831 MB / 0.796 GB, free: 5.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003643/0.6225, allocations: 1.175 MB / 0.7971 GB, free: 4.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.6252, allocations: 0.9998 MB / 0.7981 GB, free: 3.336 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004779/0.6258, allocations: 60 kB / 0.7981 GB, free: 3.277 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02533/0.6511, allocations: 7.874 MB / 0.8058 GB, free: 11.39 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008474/0.652, allocations: 310.8 kB / 0.8061 GB, free: 11.09 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008242/0.6528, allocations: 336.9 kB / 0.8065 GB, free: 10.75 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.6652, allocations: 4.673 MB / 0.811 GB, free: 6.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.6652, allocations: 0 / 0.811 GB, free: 6.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6653, allocations: 4 kB / 0.811 GB, free: 6.066 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.26e-05/0.6653, allocations: 0 / 0.811 GB, free: 6.066 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.009292/0.6746, allocations: 2.432 MB / 0.8134 GB, free: 3.578 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.6747, allocations: 13.36 kB / 0.8134 GB, free: 3.566 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.6848, allocations: 0.884 MB / 0.8143 GB, free: 2.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.6874, allocations: 0.9392 MB / 0.8152 GB, free: 1.703 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.6876, allocations: 106.4 kB / 0.8153 GB, free: 1.598 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/0.6879, allocations: 112 kB / 0.8154 GB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009464/0.6974, allocations: 2.283 MB / 0.8176 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/0.6975, allocations: 7.938 kB / 0.8176 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.6977, allocations: 56 kB / 0.8177 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.04e-05/0.6978, allocations: 28 kB / 0.8177 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.7086, allocations: 2.162 MB / 0.8198 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01921/0.7278, allocations: 10.11 MB / 0.8297 GB, free: 1.855 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007553/0.7354, allocations: 1.552 MB / 0.8312 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.7373, allocations: 478.5 kB / 0.8317 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07003/0.8074, allocations: 17.24 MB / 0.8485 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.8075, allocations: 47.16 kB / 0.8485 GB, free: 12.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 4.278e-06/0.8075, allocations: 0 / 0.8485 GB, free: 12.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=80): time 0.01287/0.8204, allocations: 2.541 MB / 0.851 GB, free: 10.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.8206, allocations: 269.7 kB / 0.8513 GB, free: 9.988 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.8225, allocations: 0.9727 MB / 0.8522 GB, free: 9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.8226, allocations: 41.7 kB / 0.8523 GB, free: 8.953 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006652/0.8233, allocations: 0.6846 MB / 0.8529 GB, free: 8.258 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.8236, allocations: 280.1 kB / 0.8532 GB, free: 7.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-05/0.8237, allocations: 24 kB / 0.8532 GB, free: 7.957 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.8239, allocations: 361.9 kB / 0.8536 GB, free: 7.598 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/0.8258, allocations: 471.7 kB / 0.854 GB, free: 7.137 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002467/0.8283, allocations: 1.073 MB / 0.8551 GB, free: 5.785 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/0.8311, allocations: 0.5814 MB / 0.8556 GB, free: 5.203 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.172e-05/0.8312, allocations: 4 kB / 0.8557 GB, free: 5.199 MB / 442.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.005864/0.837, allocations: 1.61 MB / 0.8572 GB, free: 3.582 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005222/0.8376, allocations: 0.6293 MB / 0.8578 GB, free: 2.691 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.007e-05/0.8377, allocations: 20 kB / 0.8579 GB, free: 2.672 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.265e-05/0.8377, allocations: 28 kB / 0.8579 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/0.8402, allocations: 399.4 kB / 0.8583 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.872e-05/0.8402, allocations: 35.86 kB / 0.8583 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.8425, allocations: 254.5 kB / 0.8585 GB, free: 1.969 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.8427, allocations: 91.91 kB / 0.8586 GB, free: 1.879 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.8427, allocations: 4 kB / 0.8586 GB, free: 1.875 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005261/0.848, allocations: 1.445 MB / 0.86 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-05/0.848, allocations: 20 kB / 0.8601 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.635e-05/0.8481, allocations: 31.95 kB / 0.8601 GB, free: 388 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/0.8505, allocations: 399.7 kB / 0.8605 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.214e-05/0.8505, allocations: 35.81 kB / 0.8605 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.8525, allocations: 218.8 kB / 0.8607 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.8527, allocations: 79.97 kB / 0.8608 GB, free: 15.66 MB / 458.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.0009231/0.8536, allocations: 409.8 kB / 0.8612 GB, free: 15.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002833/0.8539, allocations: 122.5 kB / 0.8613 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.8655, allocations: 5.934 MB / 0.8671 GB, free: 9.168 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.8656, allocations: 7.938 kB / 0.8671 GB, free: 9.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.8656, allocations: 4 kB / 0.8671 GB, free: 9.156 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.8668, allocations: 0.516 MB / 0.8676 GB, free: 8.617 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003303/0.8671, allocations: 24 kB / 0.8676 GB, free: 8.594 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.8688, allocations: 183.6 kB / 0.8678 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.869, allocations: 88.86 kB / 0.8679 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006393/0.8754, allocations: 2.873 MB / 0.8707 GB, free: 5.438 MB / 458.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006133/0.8816, allocations: 2.871 MB / 0.8735 GB, free: 2.543 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003149/0.8848, allocations: 1.365 MB / 0.8748 GB, free: 1.176 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002824/0.8877, allocations: 0.7466 MB / 0.8756 GB, free: 440 kB / 458.7 MB Notification: Performance of Backend: time 1.964e-06/0.8877, allocations: 0 / 0.8756 GB, free: 440 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02742/0.9152, allocations: 3.681 MB / 0.8792 GB, free: 12.76 MB / 474.7 MB Notification: Performance of SimCode: time 0.01515/0.9304, allocations: 4.424 MB / 0.8835 GB, free: 8.273 MB / 474.7 MB Notification: Performance of Templates: time 0.5463/1.477, allocations: 68.62 MB / 0.9505 GB, free: 151 MB / 490.7 MB