Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 192.5 kB / 16.1 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009252/0.0009252, allocations: 100.7 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.316/0.316, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002608, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2898, allocations: 62.96 MB / 0.5159 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001185/0.291, allocations: 1.166 MB / 0.517 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.2924, allocations: 1.325 MB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.2924, allocations: 0 / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2926, allocations: 26.69 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.2927, allocations: 32.14 kB / 0.5184 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.293, allocations: 170.2 kB / 0.5185 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.999e-05/0.2931, allocations: 52.02 kB / 0.5186 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.2932, allocations: 5.875 kB / 0.5186 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.177e-05/0.2932, allocations: 26.44 kB / 0.5186 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.005e-05/0.2933, allocations: 30.14 kB / 0.5186 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.948e-06/0.2933, allocations: 0 / 0.5186 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004461/0.2937, allocations: 318.1 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.2938, allocations: 7 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.2938, allocations: 53.88 kB / 0.519 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.294, allocations: 185 kB / 0.5192 GB, free: 35.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2941, allocations: 3.938 kB / 0.5192 GB, free: 35.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2941, allocations: 0 / 0.5192 GB, free: 35.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.2941, allocations: 0 / 0.5192 GB, free: 35.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003693/0.2944, allocations: 406 kB / 0.5196 GB, free: 34.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2945, allocations: 8.688 kB / 0.5196 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.723e-05/0.2945, allocations: 7.906 kB / 0.5196 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.391e-05/0.2946, allocations: 172.3 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.2946, allocations: 3.312 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.2946, allocations: 3.344 kB / 0.5198 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.2948, allocations: 69.67 kB / 0.5198 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.2948, allocations: 0 / 0.5198 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.2948, allocations: 11.17 kB / 0.5198 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2948, allocations: 0 / 0.5198 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.326e-05/0.2949, allocations: 57.72 kB / 0.5199 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.295, allocations: 190.1 kB / 0.5201 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.613e-05/0.2951, allocations: 57.45 kB / 0.5201 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.662e-05/0.2951, allocations: 44.16 kB / 0.5202 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.071e-05/0.2952, allocations: 22.91 kB / 0.5202 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.388e-05/0.2952, allocations: 34.5 kB / 0.5202 GB, free: 34.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.2952, allocations: 4 kB / 0.5202 GB, free: 34.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.01804/0.3133, allocations: 1.686 MB / 0.5219 GB, free: 33.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.3133, allocations: 53.91 kB / 0.5219 GB, free: 33.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.303e-05/0.3134, allocations: 133.1 kB / 0.522 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3135, allocations: 29.7 kB / 0.5221 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.836e-05/0.3135, allocations: 94.66 kB / 0.5222 GB, free: 33.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.3135, allocations: 37.56 kB / 0.5222 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.3136, allocations: 2.562 kB / 0.5222 GB, free: 33.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.153e-05/0.3136, allocations: 318.2 kB / 0.5225 GB, free: 33.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005986/0.3142, allocations: 214.8 kB / 0.5227 GB, free: 32.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000582/0.3148, allocations: 213.7 kB / 0.5229 GB, free: 32.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.316, allocations: 401.5 kB / 0.5233 GB, free: 32.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3161, allocations: 4 kB / 0.5233 GB, free: 32.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001357/0.3174, allocations: 486.7 kB / 0.5238 GB, free: 32.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3175, allocations: 2.75 kB / 0.5238 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3175, allocations: 2.844 kB / 0.5238 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3175, allocations: 0 / 0.5238 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005162/0.318, allocations: 80.62 kB / 0.5238 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.318, allocations: 3.328 kB / 0.5239 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.3184, allocations: 41.72 kB / 0.5239 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.3185, allocations: 13 kB / 0.5239 GB, free: 32.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.529e-05/0.3186, allocations: 124.3 kB / 0.524 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.3186, allocations: 9.375 kB / 0.524 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.32, allocations: 394.5 kB / 0.5244 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.32, allocations: 2.562 kB / 0.5244 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.32, allocations: 4 kB / 0.5244 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.32, allocations: 0 / 0.5244 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.3228, allocations: 0.8209 MB / 0.5252 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3228, allocations: 2.844 kB / 0.5252 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/0.3233, allocations: 87.41 kB / 0.5253 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3233, allocations: 0 / 0.5253 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.3233, allocations: 12.61 kB / 0.5253 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3233, allocations: 3.281 kB / 0.5253 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3234, allocations: 6.844 kB / 0.5253 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.3246, allocations: 454.5 kB / 0.5258 GB, free: 31.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.637e-05/0.3247, allocations: 104.4 kB / 0.5259 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.3247, allocations: 6.969 kB / 0.5259 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.3252, allocations: 41.94 kB / 0.5259 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.052e-05/0.3252, allocations: 14.81 kB / 0.5259 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.3252, allocations: 12.69 kB / 0.5259 GB, free: 31.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.187e-05/0.3253, allocations: 97.36 kB / 0.526 GB, free: 31.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3253, allocations: 7 kB / 0.526 GB, free: 31.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000551/0.3258, allocations: 169.8 kB / 0.5262 GB, free: 31.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0006024/0.3265, allocations: 248.6 kB / 0.5264 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.3277, allocations: 401.8 kB / 0.5268 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3277, allocations: 0 / 0.5268 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000598/0.3283, allocations: 163.7 kB / 0.527 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.3287, allocations: 21.92 kB / 0.527 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.3311, allocations: 0.6015 MB / 0.5276 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.3312, allocations: 0.6919 MB / 0.5283 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.3314, allocations: 44.62 kB / 0.5283 GB, free: 30.04 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3314, allocations: 0 / 0.5283 GB, free: 30.04 MB / 378.7 MB Notification: Performance of Templates: time 0.006356/0.3378, allocations: 4.694 MB / 0.5329 GB, free: 29.64 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches