Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009/0.0009001, allocations: 98.48 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1751/0.1751, allocations: 45.15 MB / 383.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2246/0.3997, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09185/0.4916, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2894/0.781, allocations: 94.29 MB / 0.596 GB, free: 8.547 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.7813, allocations: 102.5 kB / 0.5961 GB, free: 8.488 MB / 394.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: 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.02438/0.8057, allocations: 9.373 MB / 0.6052 GB, free: 500 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.8057, allocations: 8 kB / 0.6052 GB, free: 492 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.16e-05/0.8058, allocations: 34.69 kB / 0.6053 GB, free: 460 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.8061, allocations: 234.2 kB / 0.6055 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.8061, allocations: 15.94 kB / 0.6055 GB, free: 176 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.8062, allocations: 20 kB / 0.6055 GB, free: 156 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005711/0.8068, allocations: 389.8 kB / 0.6059 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005052/0.8073, allocations: 419.5 kB / 0.6063 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.8073, allocations: 0 / 0.6063 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.8073, allocations: 0 / 0.6063 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.8074, allocations: 28.39 kB / 0.6063 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.8087, allocations: 1.14 MB / 0.6074 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.674e-05/0.8088, allocations: 61.19 kB / 0.6075 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.764e-05/0.8089, allocations: 28.16 kB / 0.6075 GB, free: 14.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.8089, allocations: 7.5 kB / 0.6075 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.8089, allocations: 38.56 kB / 0.6076 GB, free: 14.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.8089, allocations: 0 / 0.6076 GB, free: 14.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002314/0.8092, allocations: 88.5 kB / 0.6076 GB, free: 14.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.8092, allocations: 55.31 kB / 0.6077 GB, free: 14.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.8093, allocations: 154.2 kB / 0.6078 GB, free: 14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.8094, allocations: 25.7 kB / 0.6079 GB, free: 13.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.8095, allocations: 209.1 kB / 0.6081 GB, free: 13.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.8095, allocations: 38.3 kB / 0.6081 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.8095, allocations: 0 / 0.6081 GB, free: 13.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.469e-05/0.8096, allocations: 322.2 kB / 0.6084 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.982e-05/0.8097, allocations: 38.61 kB / 0.6084 GB, free: 13.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.8098, allocations: 159 kB / 0.6086 GB, free: 13.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.656e-05/0.8099, allocations: 67.2 kB / 0.6087 GB, free: 13.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.8099, allocations: 0 / 0.6087 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002915/0.8102, allocations: 199 kB / 0.6088 GB, free: 12.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.8102, allocations: 8 kB / 0.6089 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.8102, allocations: 4.562 kB / 0.6089 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.8103, allocations: 4 kB / 0.6089 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.8106, allocations: 91.88 kB / 0.6089 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009042/0.8115, allocations: 1.795 MB / 0.6107 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.8117, allocations: 31.62 kB / 0.6107 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.8117, allocations: 20.16 kB / 0.6108 GB, free: 10.95 MB / 410.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 () * 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 8.559e-05/0.8118, allocations: 120 kB / 0.6109 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.8119, allocations: 11.91 kB / 0.6109 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005662/0.8124, allocations: 229.8 kB / 0.6111 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.8124, allocations: 0 / 0.6111 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.8125, allocations: 4 kB / 0.6111 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.8125, allocations: 0 / 0.6111 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.8127, allocations: 224.6 kB / 0.6113 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8127, allocations: 0 / 0.6113 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002459/0.813, allocations: 59.95 kB / 0.6114 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.813, allocations: 3.906 kB / 0.6114 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.813, allocations: 4 kB / 0.6114 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009335/0.8139, allocations: 1.787 MB / 0.6131 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.814, allocations: 0 / 0.6131 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002172/0.8142, allocations: 197.7 kB / 0.6133 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003094/0.8145, allocations: 0.5597 MB / 0.6139 GB, free: 7.691 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.8146, allocations: 85.02 kB / 0.6139 GB, free: 7.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.8146, allocations: 4.062 kB / 0.6139 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.8147, allocations: 15.42 kB / 0.614 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.8148, allocations: 7.984 kB / 0.614 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.8148, allocations: 4 kB / 0.614 GB, free: 7.562 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.221e-05/0.8149, allocations: 115.5 kB / 0.6141 GB, free: 7.457 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001082/0.8159, allocations: 110.2 kB / 0.6142 GB, free: 7.355 MB / 410.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 () * 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.0002837/0.8162, allocations: 170.4 kB / 0.6143 GB, free: 7.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004387/0.8167, allocations: 155.3 kB / 0.6145 GB, free: 7.043 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.8167, allocations: 0 / 0.6145 GB, free: 7.043 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.817, allocations: 75.89 kB / 0.6146 GB, free: 6.973 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.8172, allocations: 15.03 kB / 0.6146 GB, free: 6.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.8177, allocations: 288.9 kB / 0.6149 GB, free: 6.672 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003931/0.8181, allocations: 0.8321 MB / 0.6157 GB, free: 5.82 MB / 410.7 MB Notification: Performance of SimCode: time 2.9e-07/0.8181, allocations: 3.938 kB / 0.6157 GB, free: 5.816 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat does not exist to compare? outputFormat=mat