Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_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.General.dp_nominalPressureLossLawDensity_DPMFLOW,tolerance=1e-05,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|A_cross|A_cross_nom|dp_nom|m_flow_nom|exp|NominalMassFlowRate|V_flow_nom|zeta_TOT|zeta_TOT_nom|rho_nom|rho.1.|rho.2.|rho.3.|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_dp.1.|input_dp.2.|input_dp.3.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|DP.1.|DP.2.|DP.3.|DP_plot.1.|DP_plot.2.|DP_plot.3.|input_DP.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,tolerance=1e-05,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|A_cross|A_cross_nom|dp_nom|m_flow_nom|exp|NominalMassFlowRate|V_flow_nom|zeta_TOT|zeta_TOT_nom|rho_nom|rho.1.|rho.2.|rho.3.|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_dp.1.|input_dp.2.|input_dp.3.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|DP.1.|DP.2.|DP.3.|DP_plot.1.|DP_plot.2.|DP_plot.3.|input_DP.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 198.4 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 244.1 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007172/0.0007173, allocations: 100.7 kB / 296.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2853/0.2853, allocations: 44.82 MB / 393 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002312, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2768, allocations: 62.96 MB / 0.5165 GB, free: 37.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.3819, allocations: 94.98 MB / 0.6092 GB, free: 10.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.3822, allocations: 103.9 kB / 0.6093 GB, free: 10.3 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5283:11-5295:61:writable] Error: Type mismatch in binding A_cross = A_cross, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5297:11-5298:129:writable] Error: Type mismatch in binding zeta_TOT = zeta_TOT, expected subtype of Real[3], got type (type .Modelica.Icons.TypeReal bc:Real). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5301:11-5313:67:writable] Error: Type mismatch in binding A_cross = A_cross, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5315:11-5316:123:writable] Error: Type mismatch in binding zeta_TOT = zeta_TOT, expected subtype of Real[3], got type (type .Modelica.Icons.TypeReal bc:Real). Notification: Performance of FrontEnd - DAE generated: time 0.02767/0.4099, allocations: 9.199 MB / 0.6183 GB, free: 1 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.41, allocations: 0 / 0.6183 GB, free: 1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.41, allocations: 4 kB / 0.6183 GB, free: 0.9961 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.0007717/0.4108, allocations: 0.5307 MB / 0.6189 GB, free: 424 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.4108, allocations: 12.03 kB / 0.6189 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.4109, allocations: 28.56 kB / 0.6189 GB, free: 384 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.4113, allocations: 232 kB / 0.6191 GB, free: 112 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.4113, allocations: 29.38 kB / 0.6191 GB, free: 84 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-05/0.4114, allocations: 28.38 kB / 0.6192 GB, free: 56 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.4124, allocations: 494.6 kB / 0.6196 GB, free: 15.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.4124, allocations: 3.938 kB / 0.6196 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.4125, allocations: 16 kB / 0.6197 GB, free: 15.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.664e-05/0.4125, allocations: 24.98 kB / 0.6197 GB, free: 15.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009398/0.4135, allocations: 435.7 kB / 0.6201 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.4155, allocations: 1.19 MB / 0.6213 GB, free: 13.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.4158, allocations: 86.47 kB / 0.6213 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.4159, allocations: 44.83 kB / 0.6214 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.416, allocations: 4 kB / 0.6214 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.416, allocations: 34.56 kB / 0.6214 GB, free: 13.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=7): time 3.216e-06/0.416, allocations: 0 / 0.6214 GB, free: 13.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006347/0.4167, allocations: 169.6 kB / 0.6216 GB, free: 13.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.4167, allocations: 59.39 kB / 0.6216 GB, free: 13.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.4169, allocations: 167 kB / 0.6218 GB, free: 13.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.417, allocations: 25.7 kB / 0.6218 GB, free: 13.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.4171, allocations: 223.3 kB / 0.622 GB, free: 12.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.4172, allocations: 31.56 kB / 0.6221 GB, free: 12.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.4172, allocations: 4 kB / 0.6221 GB, free: 12.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4173, allocations: 326.8 kB / 0.6224 GB, free: 12.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.4176, allocations: 55.95 kB / 0.6224 GB, free: 12.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.4179, allocations: 180.1 kB / 0.6226 GB, free: 12.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005148/0.4184, allocations: 252 kB / 0.6228 GB, free: 11.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4184, allocations: 7.938 kB / 0.6229 GB, free: 11.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006908/0.4191, allocations: 257.1 kB / 0.6231 GB, free: 11.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4192, allocations: 8 kB / 0.6231 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4192, allocations: 4.562 kB / 0.6231 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.4192, allocations: 8 kB / 0.6231 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.4197, allocations: 91.89 kB / 0.6232 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.421, allocations: 1.782 MB / 0.6249 GB, free: 9.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.4212, allocations: 31.73 kB / 0.625 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.4213, allocations: 15.94 kB / 0.625 GB, free: 9.711 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 (dp_IN_con[3].target,dp_IN_con[2].target,dp_IN_con[1].target,m_flow_IN_con[3].target,m_flow_IN_con[2].target,m_flow_IN_con[1].target,NominalMassFlowRate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003077/0.4216, allocations: 185.6 kB / 0.6252 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.336e-05/0.4217, allocations: 7.906 kB / 0.6252 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008773/0.4226, allocations: 202.5 kB / 0.6254 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-06/0.4226, allocations: 7.938 kB / 0.6254 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4226, allocations: 0 / 0.6254 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.4226, allocations: 0 / 0.6254 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.4231, allocations: 289.5 kB / 0.6257 GB, free: 8.973 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.4231, allocations: 0 / 0.6257 GB, free: 8.973 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.4236, allocations: 67.97 kB / 0.6257 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.4236, allocations: 4 kB / 0.6257 GB, free: 8.902 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.4236, allocations: 0 / 0.6257 GB, free: 8.902 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.4248, allocations: 1.778 MB / 0.6275 GB, free: 7.055 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.4248, allocations: 3.938 kB / 0.6275 GB, free: 7.051 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/0.4254, allocations: 235.5 kB / 0.6277 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.4255, allocations: 88.94 kB / 0.6278 GB, free: 6.699 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.4255, allocations: 4 kB / 0.6278 GB, free: 6.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.4257, allocations: 11.98 kB / 0.6278 GB, free: 6.684 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/0.4258, allocations: 11.88 kB / 0.6278 GB, free: 6.672 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.4258, allocations: 8 kB / 0.6278 GB, free: 6.664 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.426, allocations: 119.2 kB / 0.6279 GB, free: 6.547 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.426, allocations: 4 kB / 0.6279 GB, free: 6.543 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007638/0.4268, allocations: 103.5 kB / 0.628 GB, free: 6.441 MB / 442.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 (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004106/0.4272, allocations: 179.1 kB / 0.6282 GB, free: 6.262 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009179/0.4281, allocations: 192.8 kB / 0.6284 GB, free: 6.074 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4281, allocations: 0 / 0.6284 GB, free: 6.074 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000513/0.4287, allocations: 95.88 kB / 0.6285 GB, free: 5.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.4291, allocations: 11.86 kB / 0.6285 GB, free: 5.969 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.4303, allocations: 0.6019 MB / 0.6291 GB, free: 5.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004669/0.4308, allocations: 0.7868 MB / 0.6298 GB, free: 4.523 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.4309, allocations: 19.44 kB / 0.6299 GB, free: 4.504 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4309, allocations: 4 kB / 0.6299 GB, free: 4.5 MB / 442.7 MB Notification: Performance of Templates: time 0.01388/0.4448, allocations: 7.126 MB / 0.6368 GB, free: 13.38 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/General/dp_nominalPressureLossLawDensity_DPMFLOW/dp_nominalPressureLossLawDensity_DPMFLOW.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches