Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.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.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW,tolerance=1e-05,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|MIN|A_cross|roughness|d_hyd|K.1.|L|eta|rho|input_mdot.1.|input_dp.1.|M_FLOW.1.|DP.1.|velocity.1.|Re.1.|DP_plot.1.|zeta_TOT.1.|lambda_FRI.1.|input_DP.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW,tolerance=1e-05,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|MIN|A_cross|roughness|d_hyd|K.1.|L|eta|rho|input_mdot.1.|input_dp.1.|M_FLOW.1.|DP.1.|velocity.1.|Re.1.|DP_plot.1.|zeta_TOT.1.|lambda_FRI.1.|input_DP.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 195 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 244.1 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007758/0.0007756, allocations: 105.4 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3005/0.3005, allocations: 44.82 MB / 393 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002518, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2751, allocations: 62.95 MB / 0.5165 GB, free: 37.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1166/0.3917, allocations: 92.17 MB / 0.6065 GB, free: 13.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.3921, allocations: 95.94 kB / 0.6066 GB, free: 13.12 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5884:11-5887:69:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[1], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5889:11-5892:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[1], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5895:11-5898:67:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[1], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5900:11-5903:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[1], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.013/0.4051, allocations: 3.671 MB / 0.6102 GB, free: 9.434 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4052, allocations: 0 / 0.6102 GB, free: 9.434 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.4052, allocations: 4 kB / 0.6102 GB, free: 9.43 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006065/0.4058, allocations: 399.1 kB / 0.6106 GB, free: 8.988 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4059, allocations: 12.03 kB / 0.6106 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.4062, allocations: 44.8 kB / 0.6106 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.4065, allocations: 192.2 kB / 0.6108 GB, free: 8.707 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.4065, allocations: 8.375 kB / 0.6108 GB, free: 8.699 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.4066, allocations: 8.359 kB / 0.6108 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.4071, allocations: 180.7 kB / 0.611 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.4071, allocations: 4.188 kB / 0.611 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.4071, allocations: 7.938 kB / 0.611 GB, free: 8.488 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.001e-05/0.4072, allocations: 15.98 kB / 0.611 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.4076, allocations: 140.2 kB / 0.6111 GB, free: 8.336 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.4087, allocations: 0.6444 MB / 0.6118 GB, free: 7.621 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/0.4092, allocations: 118.6 kB / 0.6119 GB, free: 7.496 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.4093, allocations: 48.83 kB / 0.6119 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.4094, allocations: 0 / 0.6119 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.4094, allocations: 42.44 kB / 0.612 GB, free: 7.395 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 3.146e-06/0.4094, allocations: 0 / 0.612 GB, free: 7.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0005789/0.41, allocations: 153.7 kB / 0.6121 GB, free: 7.238 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.4101, allocations: 55.34 kB / 0.6122 GB, free: 7.172 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.4102, allocations: 126 kB / 0.6123 GB, free: 7.035 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.4103, allocations: 29.7 kB / 0.6123 GB, free: 7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.624e-05/0.4104, allocations: 116 kB / 0.6124 GB, free: 6.879 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.4104, allocations: 31.55 kB / 0.6125 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.4104, allocations: 4 kB / 0.6125 GB, free: 6.844 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4106, allocations: 314.8 kB / 0.6128 GB, free: 6.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4107, allocations: 43.95 kB / 0.6128 GB, free: 6.484 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.411, allocations: 101.8 kB / 0.6129 GB, free: 6.359 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.4114, allocations: 148.5 kB / 0.6131 GB, free: 6.188 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.4114, allocations: 4 kB / 0.6131 GB, free: 6.184 MB / 426.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004549/0.4119, allocations: 173.4 kB / 0.6132 GB, free: 6.008 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.4119, allocations: 8.25 kB / 0.6132 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.4119, allocations: 4 kB / 0.6132 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4119, allocations: 0 / 0.6132 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.4122, allocations: 47.91 kB / 0.6133 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.4122, allocations: 400 / 0.6133 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.4123, allocations: 23.83 kB / 0.6133 GB, free: 5.926 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.4124, allocations: 8 kB / 0.6133 GB, free: 5.918 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001157/0.4125, allocations: 133.7 kB / 0.6134 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.4125, allocations: 11.84 kB / 0.6134 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.413, allocations: 134 kB / 0.6136 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.413, allocations: 4 kB / 0.6136 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.413, allocations: 0 / 0.6136 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.413, allocations: 4 kB / 0.6136 GB, free: 5.621 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.4133, allocations: 189.6 kB / 0.6138 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4133, allocations: 4 kB / 0.6138 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.4135, allocations: 35.84 kB / 0.6138 GB, free: 5.348 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.4135, allocations: 4 kB / 0.6138 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4135, allocations: 3.984 kB / 0.6138 GB, free: 5.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4135, allocations: 4 kB / 0.6138 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4135, allocations: 0 / 0.6138 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.414, allocations: 219.4 kB / 0.614 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.63e-05/0.414, allocations: 88.95 kB / 0.6141 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.4141, allocations: 4 kB / 0.6141 GB, free: 4.996 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.4142, allocations: 19.92 kB / 0.6141 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.4143, allocations: 4 kB / 0.6141 GB, free: 4.973 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.4143, allocations: 0 / 0.6141 GB, free: 4.973 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.887e-05/0.4143, allocations: 102.7 kB / 0.6142 GB, free: 4.875 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4144, allocations: 0 / 0.6142 GB, free: 4.875 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003791/0.4147, allocations: 27.94 kB / 0.6143 GB, free: 4.848 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * 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.0001882/0.4149, allocations: 123.2 kB / 0.6144 GB, free: 4.719 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003741/0.4153, allocations: 108.3 kB / 0.6145 GB, free: 4.613 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4153, allocations: 4 kB / 0.6145 GB, free: 4.609 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.4155, allocations: 51.91 kB / 0.6145 GB, free: 4.559 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.4158, allocations: 8.75 kB / 0.6145 GB, free: 4.551 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005516/0.4164, allocations: 326.8 kB / 0.6149 GB, free: 4.195 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4167, allocations: 0.7091 MB / 0.6155 GB, free: 3.461 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.4168, allocations: 15.44 kB / 0.6156 GB, free: 3.445 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4168, allocations: 0 / 0.6156 GB, free: 3.445 MB / 426.7 MB Notification: Performance of Templates: time 0.003735/0.4206, allocations: 1.469 MB / 0.617 GB, free: 1.988 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/StraightPipe/dp_laminar_DPMFLOW/dp_laminar_DPMFLOW.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches