Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_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 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 179.4 kB / 8.517 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 221.4 MB / 230.3 MB, free: 7.695 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008777/0.0008777, allocations: 80.06 kB / 281.2 MB, free: 5.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1637/0.1637, allocations: 44.15 MB / 376.1 MB, free: 3.27 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1807/0.3445, allocations: 68.05 MB / 444.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.4421, allocations: 61.9 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2707/0.7128, allocations: 110.8 MB / 0.6024 GB, free: 1.883 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.7132, allocations: 99.77 kB / 0.6025 GB, free: 1.789 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:4871:11-4872:126:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:4893:11-4894:120:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:4853:11-4869:48:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:4875:11-4891:59:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.0856/0.7988, allocations: 29.04 MB / 0.6309 GB, free: 4.395 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.7988, allocations: 11.94 kB / 0.6309 GB, free: 4.383 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.799, allocations: 75.06 kB / 0.631 GB, free: 4.309 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.7995, allocations: 350 kB / 0.6313 GB, free: 3.926 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.7995, allocations: 28 kB / 0.6313 GB, free: 3.898 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.7996, allocations: 44 kB / 0.6314 GB, free: 3.855 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00159/0.8012, allocations: 1.238 MB / 0.6326 GB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.8027, allocations: 1.058 MB / 0.6336 GB, free: 1.551 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.8027, allocations: 4 kB / 0.6336 GB, free: 1.547 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.299e-05/0.8028, allocations: 4 kB / 0.6336 GB, free: 1.543 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.177e-05/0.8028, allocations: 81.89 kB / 0.6337 GB, free: 1.465 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004162/0.807, allocations: 2.798 MB / 0.6364 GB, free: 14.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.8076, allocations: 356 kB / 0.6368 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.8078, allocations: 125.4 kB / 0.6369 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.8078, allocations: 12.25 kB / 0.6369 GB, free: 14.03 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.8079, allocations: 38.84 kB / 0.6369 GB, free: 13.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=34): time 1.993e-06/0.8079, allocations: 0 / 0.6369 GB, free: 13.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005213/0.8084, allocations: 319.7 kB / 0.6372 GB, free: 13.67 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.8084, allocations: 55.41 kB / 0.6373 GB, free: 13.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.8086, allocations: 185.7 kB / 0.6375 GB, free: 13.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.8086, allocations: 29.64 kB / 0.6375 GB, free: 13.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.8088, allocations: 378.3 kB / 0.6379 GB, free: 13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.062e-05/0.8089, allocations: 114.3 kB / 0.638 GB, free: 12.88 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.8089, allocations: 0 / 0.638 GB, free: 12.88 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.809, allocations: 338.7 kB / 0.6383 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.8092, allocations: 128.9 kB / 0.6384 GB, free: 12.42 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002869/0.8095, allocations: 326.3 kB / 0.6387 GB, free: 12.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.8098, allocations: 192 kB / 0.6389 GB, free: 11.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8098, allocations: 4 kB / 0.6389 GB, free: 11.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006976/0.8105, allocations: 476.6 kB / 0.6394 GB, free: 11.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.8105, allocations: 5.094 kB / 0.6394 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.8105, allocations: 8.875 kB / 0.6394 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.8106, allocations: 11.91 kB / 0.6394 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.8117, allocations: 207.8 kB / 0.6396 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.8133, allocations: 3.032 MB / 0.6425 GB, free: 7.969 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.8136, allocations: 51.52 kB / 0.6426 GB, free: 7.918 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.035e-05/0.8137, allocations: 31.98 kB / 0.6426 GB, free: 7.887 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (roughness,geometry[5],geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.8138, allocations: 124.9 kB / 0.6427 GB, free: 7.758 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.8139, allocations: 19.72 kB / 0.6428 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.8154, allocations: 0.6241 MB / 0.6434 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.8154, allocations: 4 kB / 0.6434 GB, free: 7.109 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.8154, allocations: 4 kB / 0.6434 GB, free: 7.105 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.8154, allocations: 3.984 kB / 0.6434 GB, free: 7.102 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.8168, allocations: 0.9823 MB / 0.6443 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.8169, allocations: 4 kB / 0.6443 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006767/0.8175, allocations: 172.1 kB / 0.6445 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.8176, allocations: 4 kB / 0.6445 GB, free: 5.875 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.8176, allocations: 12 kB / 0.6445 GB, free: 5.863 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.819, allocations: 2.989 MB / 0.6474 GB, free: 2.758 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.819, allocations: 3.938 kB / 0.6474 GB, free: 2.754 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005804/0.8196, allocations: 0.5351 MB / 0.648 GB, free: 2.129 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006639/0.8202, allocations: 0.9296 MB / 0.6489 GB, free: 1.105 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.508e-05/0.8203, allocations: 104.8 kB / 0.649 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.8204, allocations: 0 / 0.649 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.8206, allocations: 15.98 kB / 0.649 GB, free: 0.9688 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.798e-05/0.8207, allocations: 39.86 kB / 0.649 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.8207, allocations: 23.94 kB / 0.6491 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.857e-05/0.8208, allocations: 119.2 kB / 0.6492 GB, free: 0.7891 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001755/0.8226, allocations: 378.6 kB / 0.6495 GB, free: 428 kB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/0.8236, allocations: 420 kB / 0.6499 GB, free: 4 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0009609/0.8246, allocations: 425.2 kB / 0.6503 GB, free: 15.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8246, allocations: 4.125 kB / 0.6503 GB, free: 15.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006426/0.8253, allocations: 239.7 kB / 0.6506 GB, free: 15.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.8255, allocations: 28.02 kB / 0.6506 GB, free: 15.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.827, allocations: 0.807 MB / 0.6514 GB, free: 14.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000616/0.8276, allocations: 1.049 MB / 0.6524 GB, free: 13.39 MB / 474.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8276, allocations: 0 / 0.6524 GB, free: 13.39 MB / 474.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat