Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_laminar_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_laminar_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002422/0.002421, allocations: 187.6 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 84.44 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.519/0.519, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004666/0.0004667, allocations: 12 kB / 431.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1326, allocations: 58.84 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4957/0.6284, allocations: 90.11 MB / 0.5669 GB, free: 12.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004016/0.6288, allocations: 103.9 kB / 0.5669 GB, free: 12.32 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5968:11-5971: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 3.2.3+maint.om/Fluid/Dissipation.mo:5973:11-5976: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 3.2.3+maint.om/Fluid/Dissipation.mo:5979:11-5982: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 3.2.3+maint.om/Fluid/Dissipation.mo:5984:11-5987: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.01753/0.6464, allocations: 3.517 MB / 0.5704 GB, free: 8.816 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6464, allocations: 4 kB / 0.5704 GB, free: 8.812 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.6465, allocations: 6.906 kB / 0.5704 GB, free: 8.809 MB / 394.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.0007397/0.6472, allocations: 406.7 kB / 0.5708 GB, free: 8.367 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.6473, allocations: 8.031 kB / 0.5708 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.43e-05/0.6474, allocations: 46.53 kB / 0.5708 GB, free: 8.305 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004496/0.6478, allocations: 47.28 kB / 0.5709 GB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.6481, allocations: 186.9 kB / 0.5711 GB, free: 8.039 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.6482, allocations: 8 kB / 0.5711 GB, free: 8.031 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.6482, allocations: 11.94 kB / 0.5711 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005711/0.6488, allocations: 183.2 kB / 0.5713 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.6488, allocations: 0 / 0.5713 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.6489, allocations: 7.984 kB / 0.5713 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.613e-05/0.6489, allocations: 13.02 kB / 0.5713 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005889/0.6495, allocations: 144.8 kB / 0.5714 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.6508, allocations: 0.6526 MB / 0.572 GB, free: 6.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.6514, allocations: 114.6 kB / 0.5722 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.6514, allocations: 0 / 0.5722 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.6515, allocations: 38.56 kB / 0.5722 GB, free: 6.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.6515, allocations: 0 / 0.5722 GB, free: 6.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007879/0.6523, allocations: 144 kB / 0.5723 GB, free: 6.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.6524, allocations: 55.41 kB / 0.5724 GB, free: 6.566 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.6525, allocations: 118.6 kB / 0.5725 GB, free: 6.441 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.6525, allocations: 25.7 kB / 0.5725 GB, free: 6.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.6527, allocations: 190.5 kB / 0.5727 GB, free: 6.219 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.39e-05/0.6527, allocations: 27.64 kB / 0.5727 GB, free: 6.191 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.6528, allocations: 4 kB / 0.5727 GB, free: 6.188 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.6529, allocations: 322.7 kB / 0.573 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.6531, allocations: 47.95 kB / 0.5731 GB, free: 5.816 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.6534, allocations: 95.69 kB / 0.5732 GB, free: 5.695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.6537, allocations: 51.97 kB / 0.5732 GB, free: 5.645 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.6537, allocations: 0 / 0.5732 GB, free: 5.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005961/0.6543, allocations: 170.3 kB / 0.5734 GB, free: 5.473 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.6543, allocations: 4 kB / 0.5734 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.6544, allocations: 8.188 kB / 0.5734 GB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.6544, allocations: 8 kB / 0.5734 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003335/0.6547, allocations: 43.97 kB / 0.5734 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.6548, allocations: 4 kB / 0.5735 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.655, allocations: 21.83 kB / 0.5735 GB, free: 5.387 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.655, allocations: 8 kB / 0.5735 GB, free: 5.379 MB / 394.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.0001644/0.6552, allocations: 141.7 kB / 0.5736 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.6552, allocations: 3.906 kB / 0.5736 GB, free: 5.227 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005723/0.6558, allocations: 137.9 kB / 0.5738 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.6558, allocations: 7.938 kB / 0.5738 GB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.6558, allocations: 4 kB / 0.5738 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.6559, allocations: 0 / 0.5738 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.6562, allocations: 193.6 kB / 0.5739 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.6562, allocations: 0 / 0.5739 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.6565, allocations: 35.97 kB / 0.574 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.6565, allocations: 0 / 0.574 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.6566, allocations: 0 / 0.574 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.6566, allocations: 0 / 0.574 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.6566, allocations: 4 kB / 0.574 GB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.6572, allocations: 221.5 kB / 0.5742 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.039e-05/0.6573, allocations: 92.91 kB / 0.5743 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.6573, allocations: 1.938 kB / 0.5743 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.6575, allocations: 19.92 kB / 0.5743 GB, free: 4.441 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.6575, allocations: 4 kB / 0.5743 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.6576, allocations: 4 kB / 0.5743 GB, free: 4.434 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.319e-05/0.6577, allocations: 97.77 kB / 0.5744 GB, free: 4.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6577, allocations: 0 / 0.5744 GB, free: 4.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000378/0.6581, allocations: 24 kB / 0.5744 GB, free: 4.316 MB / 394.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.001029/0.6591, allocations: 0.7748 MB / 0.5752 GB, free: 3.512 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005272/0.6597, allocations: 111.8 kB / 0.5753 GB, free: 3.402 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.6597, allocations: 0 / 0.5753 GB, free: 3.402 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.6599, allocations: 56.39 kB / 0.5753 GB, free: 3.348 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.6602, allocations: 4 kB / 0.5754 GB, free: 3.344 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.6627, allocations: 1.983 MB / 0.5773 GB, free: 1.277 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.6632, allocations: 0.7199 MB / 0.578 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.734e-05/0.6633, allocations: 23.44 kB / 0.578 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6633, allocations: 3.938 kB / 0.578 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.423, allocations: 1.931 MB / 0.5799 GB, free: 14.59 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_laminar_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_laminar_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat does not exist to compare? outputFormat=mat