Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 113.8 kB / 18.46 MB, free: 4.617 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.001488/0.001488, allocations: 186.1 kB / 19.39 MB, free: 3.695 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.387/1.387, 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.2123/0.2123, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3443, allocations: 60.82 MB / 0.5196 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice): time 0.1992/0.5435, allocations: 176.5 MB / 0.6919 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005764/0.5493, allocations: 3.77 MB / 0.6956 GB, free: 7.199 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006127/0.55, allocations: 19.88 kB / 0.6956 GB, free: 7.18 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001013/0.551, allocations: 329.8 kB / 0.6959 GB, free: 6.855 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003621/0.5547, allocations: 1.362 MB / 0.6973 GB, free: 5.496 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002634/0.5573, allocations: 1.07 MB / 0.6983 GB, free: 4.43 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002021/0.5594, allocations: 1.594 MB / 0.6999 GB, free: 2.824 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006774/0.5601, allocations: 414 kB / 0.7003 GB, free: 2.414 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.5611, allocations: 0.611 MB / 0.7008 GB, free: 1.801 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007928/0.5619, allocations: 466 kB / 0.7013 GB, free: 1.344 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.5621, allocations: 52 kB / 0.7013 GB, free: 1.293 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002382/0.5645, allocations: 1.287 MB / 0.7026 GB, free: 4 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.5648, allocations: 159.4 kB / 0.7028 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005228/0.5653, allocations: 370.2 kB / 0.7031 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00229/0.5676, allocations: 1.551 MB / 0.7046 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.5676, allocations: 4 kB / 0.7046 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5676, allocations: 0 / 0.7046 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.515e-05/0.5676, allocations: 0 / 0.7046 GB, free: 13.93 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00224/0.5699, allocations: 1.166 MB / 0.7058 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.5699, allocations: 15.97 kB / 0.7058 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.5712, allocations: 167 kB / 0.7059 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.5725, allocations: 0.6025 MB / 0.7065 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.5725, allocations: 29 kB / 0.7066 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.116e-05/0.5726, allocations: 44 kB / 0.7066 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.5737, allocations: 0.5984 MB / 0.7072 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.5737, allocations: 0 / 0.7072 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.369e-05/0.5738, allocations: 20 kB / 0.7072 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.5738, allocations: 8 kB / 0.7072 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007647/0.5745, allocations: 467.6 kB / 0.7077 GB, free: 10.68 MB / 0.5606 GB 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.003618/0.5782, allocations: 2.631 MB / 0.7102 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.5787, allocations: 290.8 kB / 0.7105 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.579, allocations: 173.2 kB / 0.7107 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003363/0.5794, allocations: 344.5 kB / 0.711 GB, free: 7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004884/0.5799, allocations: 342 kB / 0.7113 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.5799, allocations: 0 / 0.7113 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of matching and sorting (n=35): time 0.001147/0.581, allocations: 0.6241 MB / 0.7119 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.5812, allocations: 290.7 kB / 0.7122 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006827/0.5819, allocations: 0.5743 MB / 0.7128 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.5819, allocations: 29.7 kB / 0.7128 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002806/0.5822, allocations: 335.4 kB / 0.7131 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.5824, allocations: 114.4 kB / 0.7132 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.5826, allocations: 134.1 kB / 0.7133 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.5827, allocations: 374.7 kB / 0.7137 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.583, allocations: 167 kB / 0.7139 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004443/0.5835, allocations: 386.6 kB / 0.7142 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007317/0.5842, allocations: 0.5745 MB / 0.7148 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.5843, allocations: 4 kB / 0.7148 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001077/0.5853, allocations: 0.6577 MB / 0.7154 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.5854, allocations: 41.69 kB / 0.7155 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.5854, allocations: 4 kB / 0.7155 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5854, allocations: 8.75 kB / 0.7155 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003268/0.5887, allocations: 427.5 kB / 0.7159 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00049/0.5892, allocations: 0.6289 MB / 0.7165 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.5897, allocations: 63.38 kB / 0.7166 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-05/0.5898, allocations: 51.98 kB / 0.7166 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004241/0.5902, allocations: 289.1 kB / 0.7169 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004121/0.5906, allocations: 378.7 kB / 0.7173 GB, free: 84 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.2723/0.8629, allocations: 0.5251 MB / 0.7178 GB, free: 189.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.845e-06/0.8629, allocations: 1.906 kB / 0.7178 GB, free: 189.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001481/0.8644, allocations: 0.614 MB / 0.7184 GB, free: 189.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.8645, allocations: 45.66 kB / 0.7184 GB, free: 189.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.8645, allocations: 9.094 kB / 0.7184 GB, free: 189.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.8645, allocations: 8.875 kB / 0.7184 GB, free: 189.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.865, allocations: 121.7 kB / 0.7186 GB, free: 189.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.341e-05/0.865, allocations: 20.28 kB / 0.7186 GB, free: 189 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006081/0.8656, allocations: 47.19 kB / 0.7186 GB, free: 189 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.8657, allocations: 54.73 kB / 0.7187 GB, free: 189 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 7 (p_table.nextEventScaled,p_table.nextEvent,$PRE.p_table.nextEvent,p_table.last,p_table.b,p_table.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003053/0.866, allocations: 252.2 kB / 0.7189 GB, free: 188.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.8662, allocations: 65.67 kB / 0.719 GB, free: 188.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.8685, allocations: 1.194 MB / 0.7201 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.8685, allocations: 3.234 kB / 0.7201 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.8685, allocations: 0 / 0.7201 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.8687, allocations: 140.1 kB / 0.7203 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.8689, allocations: 16.98 kB / 0.7203 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.8692, allocations: 12.36 kB / 0.7203 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.996e-05/0.8693, allocations: 31.19 kB / 0.7203 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001108/0.8704, allocations: 0.66 MB / 0.721 GB, free: 188.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001273/0.8717, allocations: 0.9118 MB / 0.7219 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003199/0.872, allocations: 216.3 kB / 0.7221 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005587/0.8726, allocations: 414.4 kB / 0.7225 GB, free: 187.3 MB / 0.5606 GB Notification: Performance of Backend: time 4.61e-07/0.8726, allocations: 0 / 0.7225 GB, free: 187.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00792/0.8805, allocations: 1.603 MB / 0.724 GB, free: 186.9 MB / 0.5606 GB Notification: Performance of SimCode: time 0.002933/0.8835, allocations: 1.736 MB / 0.7257 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.02798/0.9115, allocations: 20.34 MB / 0.7456 GB, free: 172.6 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches