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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008619/0.000862, allocations: 198.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 226.5 MB / 243.4 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006991/0.0006991, allocations: 102.4 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2613/0.2613, allocations: 44.81 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002316, allocations: 12 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2753, allocations: 62.96 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.0009915/0.2764, allocations: 1.163 MB / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2775, allocations: 1.317 MB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.2776, allocations: 3.938 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.2777, allocations: 27.33 kB / 0.5184 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.2778, allocations: 36.33 kB / 0.5185 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.2781, allocations: 164.4 kB / 0.5186 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.97e-05/0.2782, allocations: 52.06 kB / 0.5187 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.2782, allocations: 9.453 kB / 0.5187 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.021e-05/0.2783, allocations: 33.66 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.617e-05/0.2783, allocations: 22.94 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.368e-06/0.2784, allocations: 0 / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004112/0.2788, allocations: 318.2 kB / 0.519 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.106e-05/0.2788, allocations: 10.91 kB / 0.519 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.2788, allocations: 49.64 kB / 0.5191 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.279, allocations: 190.7 kB / 0.5193 GB, free: 35.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2791, allocations: 2.875 kB / 0.5193 GB, free: 35.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2791, allocations: 0 / 0.5193 GB, free: 35.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2791, allocations: 0 / 0.5193 GB, free: 35.08 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.0003337/0.2794, allocations: 400 kB / 0.5197 GB, free: 34.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2795, allocations: 11.12 kB / 0.5197 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.461e-05/0.2795, allocations: 34.75 kB / 0.5197 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.039e-05/0.2795, allocations: 10.55 kB / 0.5197 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.62e-05/0.2796, allocations: 173.7 kB / 0.5199 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.2796, allocations: 384 / 0.5199 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.2796, allocations: 7.312 kB / 0.5199 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.949e-05/0.2797, allocations: 65.77 kB / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.2797, allocations: 4 kB / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.2798, allocations: 0 / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2798, allocations: 2.906 kB / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.698e-05/0.2798, allocations: 57.64 kB / 0.52 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.28, allocations: 191.6 kB / 0.5202 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.321e-05/0.28, allocations: 60 kB / 0.5202 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.193e-05/0.2801, allocations: 37.61 kB / 0.5203 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.2801, allocations: 22.66 kB / 0.5203 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.2802, allocations: 45.5 kB / 0.5203 GB, free: 34.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.2802, allocations: 0 / 0.5203 GB, free: 34.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.01899/0.2992, allocations: 1.68 MB / 0.522 GB, free: 33.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.242e-05/0.2992, allocations: 58.73 kB / 0.522 GB, free: 33.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.696e-05/0.2993, allocations: 131 kB / 0.5222 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.2993, allocations: 25.7 kB / 0.5222 GB, free: 33.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.158e-05/0.2993, allocations: 95.36 kB / 0.5223 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.2994, allocations: 40.52 kB / 0.5223 GB, free: 33.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.878e-05/0.2994, allocations: 4 kB / 0.5223 GB, free: 33.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.853e-05/0.2995, allocations: 321 kB / 0.5226 GB, free: 33.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006268/0.3001, allocations: 212.5 kB / 0.5228 GB, free: 32.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006125/0.3007, allocations: 220.2 kB / 0.523 GB, free: 32.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.302, allocations: 392.9 kB / 0.5234 GB, free: 32.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.302, allocations: 0 / 0.5234 GB, free: 32.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001365/0.3034, allocations: 483.2 kB / 0.5239 GB, free: 32.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3034, allocations: 3.062 kB / 0.5239 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3034, allocations: 6.281 kB / 0.5239 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.3034, allocations: 0 / 0.5239 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.304, allocations: 80.61 kB / 0.524 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.304, allocations: 3.938 kB / 0.524 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/0.3045, allocations: 44.39 kB / 0.524 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.3045, allocations: 15.69 kB / 0.524 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 7.939e-05/0.3046, allocations: 116.7 kB / 0.5241 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.3047, allocations: 10.22 kB / 0.5241 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.3061, allocations: 402.4 kB / 0.5245 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3061, allocations: 2.812 kB / 0.5245 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3061, allocations: 0 / 0.5245 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3061, allocations: 0 / 0.5245 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.309, allocations: 0.8217 MB / 0.5253 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.309, allocations: 0 / 0.5253 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005313/0.3096, allocations: 80.89 kB / 0.5254 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3096, allocations: 3.062 kB / 0.5254 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.3096, allocations: 12.98 kB / 0.5254 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3096, allocations: 10.62 kB / 0.5254 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3096, allocations: 0 / 0.5254 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.3109, allocations: 450 kB / 0.5259 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.311, allocations: 113 kB / 0.526 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.3111, allocations: 4 kB / 0.526 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/0.3116, allocations: 49.36 kB / 0.526 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.975e-05/0.3116, allocations: 8.516 kB / 0.526 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.3116, allocations: 16.28 kB / 0.526 GB, free: 31.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.635e-05/0.3117, allocations: 110.1 kB / 0.5262 GB, free: 31.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3117, allocations: 0 / 0.5262 GB, free: 31.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005031/0.3122, allocations: 166.4 kB / 0.5263 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.001977/0.3142, allocations: 1.126 MB / 0.5274 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.3155, allocations: 399.7 kB / 0.5278 GB, free: 30.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3155, allocations: 4 kB / 0.5278 GB, free: 30.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.3161, allocations: 163.5 kB / 0.528 GB, free: 30.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.3164, allocations: 20.41 kB / 0.528 GB, free: 30.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005015/0.3214, allocations: 1.591 MB / 0.5295 GB, free: 29.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.3216, allocations: 0.6939 MB / 0.5302 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.3217, allocations: 58.11 kB / 0.5303 GB, free: 28.85 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3218, allocations: 0 / 0.5303 GB, free: 28.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.953/3.275, allocations: 4.383 MB / 0.5345 GB, free: 28.5 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins1/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