Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 110.5 kB / 18.46 MB, free: 4.594 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.001127/0.001127, allocations: 187.2 kB / 19.38 MB, free: 3.676 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.346/1.346, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2033/0.2033, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 60.09 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3046, allocations: 60.83 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse): time 0.05295/0.3575, allocations: 51.72 MB / 0.5701 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.3701, allocations: 7.381 MB / 0.5773 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.3716, allocations: 43.62 kB / 0.5773 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.3733, allocations: 0.5158 MB / 0.5778 GB, free: 220 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007454/0.3807, allocations: 3.169 MB / 0.5809 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.3855, allocations: 2.177 MB / 0.5831 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003441/0.3889, allocations: 2.909 MB / 0.5859 GB, free: 7.953 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/0.3904, allocations: 0.97 MB / 0.5869 GB, free: 6.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0058/0.3962, allocations: 4.283 MB / 0.591 GB, free: 2.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.3996, allocations: 2.571 MB / 0.5935 GB, free: 104 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004162/0.4001, allocations: 108 kB / 0.5937 GB, free: 15.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005151/0.4052, allocations: 2.886 MB / 0.5965 GB, free: 13.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005152/0.4058, allocations: 338.8 kB / 0.5968 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.4069, allocations: 0.6881 MB / 0.5975 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004138/0.4111, allocations: 2.357 MB / 0.5998 GB, free: 9.715 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4111, allocations: 3.984 kB / 0.5998 GB, free: 9.711 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4111, allocations: 0 / 0.5998 GB, free: 9.711 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.265e-05/0.4112, allocations: 0 / 0.5998 GB, free: 9.711 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.003964/0.4152, allocations: 1.803 MB / 0.6015 GB, free: 7.852 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4152, allocations: 8.031 kB / 0.6015 GB, free: 7.844 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00287/0.4181, allocations: 315.1 kB / 0.6018 GB, free: 7.535 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.4197, allocations: 0.8187 MB / 0.6026 GB, free: 6.676 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.413e-05/0.4197, allocations: 65.94 kB / 0.6027 GB, free: 6.609 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.4199, allocations: 80 kB / 0.6028 GB, free: 6.531 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002961/0.4228, allocations: 1.2 MB / 0.6039 GB, free: 5.262 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.4229, allocations: 0 / 0.6039 GB, free: 5.262 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.423, allocations: 40 kB / 0.604 GB, free: 5.223 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.423, allocations: 20 kB / 0.604 GB, free: 5.203 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002798/0.4258, allocations: 0.9795 MB / 0.605 GB, free: 4.223 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006422/0.4323, allocations: 5.396 MB / 0.6102 GB, free: 14.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.4343, allocations: 0.6183 MB / 0.6108 GB, free: 13.78 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007163/0.4351, allocations: 334.3 kB / 0.6112 GB, free: 13.44 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008319/0.4359, allocations: 1.39 MB / 0.6125 GB, free: 11.74 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.436, allocations: 39.12 kB / 0.6125 GB, free: 11.69 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004386/0.4364, allocations: 98.95 kB / 0.6126 GB, free: 11.59 MB / 478.1 MB Notification: Performance of pre-optimization done (n=65): time 5.39e-06/0.4364, allocations: 3.984 kB / 0.6126 GB, free: 11.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=65): time 0.006125/0.4425, allocations: 1.631 MB / 0.6142 GB, free: 9.934 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.4427, allocations: 184.5 kB / 0.6144 GB, free: 9.711 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.4438, allocations: 0.9696 MB / 0.6154 GB, free: 8.727 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.968e-05/0.4439, allocations: 45.7 kB / 0.6154 GB, free: 8.676 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.4443, allocations: 0.4997 MB / 0.6159 GB, free: 8.172 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.4445, allocations: 224.8 kB / 0.6161 GB, free: 7.949 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.4448, allocations: 206.4 kB / 0.6163 GB, free: 7.738 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4449, allocations: 338 kB / 0.6166 GB, free: 7.402 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008115/0.4457, allocations: 352.6 kB / 0.617 GB, free: 7.055 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009677/0.4467, allocations: 0.5397 MB / 0.6175 GB, free: 6.43 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.4484, allocations: 0.8498 MB / 0.6183 GB, free: 5.512 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.4484, allocations: 3.938 kB / 0.6183 GB, free: 5.508 MB / 478.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00243/0.4509, allocations: 1.148 MB / 0.6194 GB, free: 4.348 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.4509, allocations: 14.64 kB / 0.6195 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4509, allocations: 4 kB / 0.6195 GB, free: 4.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006086/0.457, allocations: 0.7504 MB / 0.6202 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008928/0.4579, allocations: 239.6 kB / 0.6204 GB, free: 3.344 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000878/0.4588, allocations: 0.7861 MB / 0.6212 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008485/0.4597, allocations: 55.94 kB / 0.6212 GB, free: 2.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.4598, allocations: 63.97 kB / 0.6213 GB, free: 2.418 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009849/0.4608, allocations: 0.4901 MB / 0.6218 GB, free: 1.926 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000904/0.4617, allocations: 0.544 MB / 0.6223 GB, free: 1.289 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001586/0.4633, allocations: 0.8383 MB / 0.6231 GB, free: 384 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.4633, allocations: 0 / 0.6231 GB, free: 384 kB / 478.1 MB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.002426/0.4657, allocations: 1.09 MB / 0.6242 GB, free: 15.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.4658, allocations: 11.97 kB / 0.6242 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4658, allocations: 8 kB / 0.6242 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003076/0.4661, allocations: 84.77 kB / 0.6243 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000902/0.467, allocations: 259.6 kB / 0.6245 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.4694, allocations: 1.826 MB / 0.6263 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.4708, allocations: 51.91 kB / 0.6264 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.471, allocations: 59.97 kB / 0.6264 GB, free: 12.84 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004345/0.4714, allocations: 232.1 kB / 0.6267 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.4719, allocations: 122.6 kB / 0.6268 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005937/0.4778, allocations: 2.077 MB / 0.6288 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.4779, allocations: 3.984 kB / 0.6288 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.4779, allocations: 0 / 0.6288 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008121/0.4787, allocations: 267.5 kB / 0.6291 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003838/0.4791, allocations: 16 kB / 0.6291 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.4803, allocations: 51.94 kB / 0.6291 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.4805, allocations: 48.5 kB / 0.6292 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003738/0.4842, allocations: 0.919 MB / 0.6301 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003724/0.488, allocations: 1.256 MB / 0.6313 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001/0.489, allocations: 276.3 kB / 0.6316 GB, free: 7.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00179/0.4908, allocations: 0.7418 MB / 0.6323 GB, free: 6.734 MB / 494.1 MB Notification: Performance of Backend: time 8.12e-07/0.4908, allocations: 4 kB / 0.6323 GB, free: 6.73 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007531/0.4983, allocations: 1.776 MB / 0.634 GB, free: 4.945 MB / 494.1 MB Notification: Performance of SimCode: time 0.00711/0.5055, allocations: 2.708 MB / 0.6367 GB, free: 2.188 MB / 494.1 MB Notification: Performance of Templates: time 0.06094/0.5665, allocations: 35.01 MB / 0.6709 GB, free: 15.43 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1)