Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_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.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_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_trunk_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 trunk/package.mo): time 0.001516/0.001516, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008421/0.0008421, allocations: 87.31 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1689/0.1689, allocations: 45.14 MB / 383.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2002/0.3692, allocations: 69.39 MB / 452.7 MB, free: 76.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.4592, allocations: 63.25 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2942/0.7535, allocations: 111.9 MB / 0.6131 GB, free: 6.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.7538, allocations: 98.75 kB / 0.6132 GB, free: 6.875 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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 trunk/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 trunk/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 trunk/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.08156/0.8353, allocations: 28.93 MB / 0.6415 GB, free: 14.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.8354, allocations: 8 kB / 0.6415 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.8355, allocations: 75.06 kB / 0.6416 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004856/0.836, allocations: 351.9 kB / 0.6419 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.8361, allocations: 24 kB / 0.6419 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-05/0.8362, allocations: 44 kB / 0.642 GB, free: 13.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001552/0.8377, allocations: 1.245 MB / 0.6432 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.8391, allocations: 1.062 MB / 0.6442 GB, free: 12.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.8391, allocations: 0 / 0.6442 GB, free: 12.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.8392, allocations: 0 / 0.6442 GB, free: 12.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.021e-05/0.8393, allocations: 81.62 kB / 0.6443 GB, free: 12.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003944/0.8432, allocations: 2.795 MB / 0.647 GB, free: 9.738 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.8439, allocations: 352.3 kB / 0.6474 GB, free: 9.445 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.844, allocations: 128.8 kB / 0.6475 GB, free: 9.348 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.8441, allocations: 16.19 kB / 0.6475 GB, free: 9.332 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.8441, allocations: 38.41 kB / 0.6475 GB, free: 9.289 MB / 442.7 MB Notification: Performance of pre-optimization done (n=34): time 1.583e-06/0.8441, allocations: 4 kB / 0.6475 GB, free: 9.285 MB / 442.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005767/0.8447, allocations: 325.2 kB / 0.6479 GB, free: 9.012 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.8448, allocations: 55.34 kB / 0.6479 GB, free: 8.945 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.845, allocations: 186.4 kB / 0.6481 GB, free: 8.777 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.845, allocations: 25.7 kB / 0.6481 GB, free: 8.746 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.8452, allocations: 379.7 kB / 0.6485 GB, free: 8.398 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.728e-05/0.8453, allocations: 116.3 kB / 0.6486 GB, free: 8.297 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.8453, allocations: 4 kB / 0.6486 GB, free: 8.293 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8454, allocations: 340.8 kB / 0.6489 GB, free: 7.961 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.8457, allocations: 123.9 kB / 0.649 GB, free: 7.867 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.846, allocations: 318.1 kB / 0.6493 GB, free: 7.504 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.8462, allocations: 191.7 kB / 0.6495 GB, free: 7.348 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.8462, allocations: 0 / 0.6495 GB, free: 7.348 MB / 442.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007047/0.847, allocations: 480 kB / 0.65 GB, free: 6.934 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.847, allocations: 8 kB / 0.65 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.847, allocations: 8 kB / 0.65 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.847, allocations: 12 kB / 0.65 GB, free: 6.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008328/0.8479, allocations: 202.2 kB / 0.6502 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.8497, allocations: 3.027 MB / 0.6532 GB, free: 3.598 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.85, allocations: 47.77 kB / 0.6532 GB, free: 3.551 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.85, allocations: 35.48 kB / 0.6532 GB, free: 3.52 MB / 442.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.0001126/0.8502, allocations: 124.2 kB / 0.6533 GB, free: 3.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.8502, allocations: 23.72 kB / 0.6534 GB, free: 3.371 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.8517, allocations: 0.6292 MB / 0.654 GB, free: 2.816 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.8517, allocations: 4 kB / 0.654 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.8517, allocations: 4 kB / 0.654 GB, free: 2.809 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.8517, allocations: 3.984 kB / 0.654 GB, free: 2.805 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.853, allocations: 0.9753 MB / 0.6549 GB, free: 1.898 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.853, allocations: 8 kB / 0.655 GB, free: 1.891 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006773/0.8537, allocations: 171.8 kB / 0.6551 GB, free: 1.727 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.8537, allocations: 4 kB / 0.6551 GB, free: 1.723 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.8538, allocations: 11.98 kB / 0.6551 GB, free: 1.711 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.8553, allocations: 2.984 MB / 0.658 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.8553, allocations: 4 kB / 0.6581 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005668/0.8559, allocations: 0.5449 MB / 0.6586 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006871/0.8566, allocations: 0.9227 MB / 0.6595 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.214e-05/0.8566, allocations: 100.8 kB / 0.6596 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.8567, allocations: 7.984 kB / 0.6596 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.857, allocations: 12 kB / 0.6596 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.8571, allocations: 39.28 kB / 0.6596 GB, free: 12.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.8571, allocations: 23.8 kB / 0.6597 GB, free: 12.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.148e-05/0.8572, allocations: 122.3 kB / 0.6598 GB, free: 12.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001678/0.8589, allocations: 400.2 kB / 0.6602 GB, free: 12.43 MB / 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.0008109/0.8597, allocations: 436.2 kB / 0.6606 GB, free: 12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.8606, allocations: 430.8 kB / 0.661 GB, free: 11.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8606, allocations: 0 / 0.661 GB, free: 11.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000613/0.8612, allocations: 243.1 kB / 0.6612 GB, free: 11.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002214/0.8615, allocations: 24.67 kB / 0.6612 GB, free: 11.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.8628, allocations: 0.8184 MB / 0.662 GB, free: 10.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006019/0.8634, allocations: 1.049 MB / 0.6631 GB, free: 9.527 MB / 458.7 MB Notification: Performance of SimCode: time 2.51e-07/0.8634, allocations: 0 / 0.6631 GB, free: 9.527 MB / 458.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat