Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.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.HeatTransfer.Channel.kc_evenGapLaminar,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Channel_kc_evenGapLaminar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Channel_kc_evenGapLaminar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 199.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007337/0.0007337, allocations: 102.7 kB / 295.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2743/0.2743, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002582, allocations: 8 kB / 465.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2499, allocations: 62.95 MB / 0.516 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar): time 0.001536/0.2515, allocations: 1.612 MB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2526, allocations: 1.064 MB / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.76e-05/0.2527, allocations: 0 / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.2529, allocations: 51.61 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00018/0.2531, allocations: 98.94 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.2534, allocations: 130.7 kB / 0.5189 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.2538, allocations: 0.5138 MB / 0.5194 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.851e-05/0.2539, allocations: 49.69 kB / 0.5194 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.561e-05/0.254, allocations: 150.6 kB / 0.5196 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.2542, allocations: 197.7 kB / 0.5197 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.2542, allocations: 15.78 kB / 0.5198 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.2545, allocations: 250.9 kB / 0.52 GB, free: 34.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.142e-05/0.2546, allocations: 104.9 kB / 0.5201 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.2547, allocations: 201.5 kB / 0.5203 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.255, allocations: 407.5 kB / 0.5207 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.255, allocations: 3.938 kB / 0.5207 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.255, allocations: 0 / 0.5207 GB, free: 34.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2551, allocations: 0 / 0.5207 GB, free: 34.33 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.0006238/0.2557, allocations: 0.6294 MB / 0.5213 GB, free: 33.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2557, allocations: 9.594 kB / 0.5213 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.28e-05/0.2558, allocations: 99.7 kB / 0.5214 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.414e-05/0.2559, allocations: 51.75 kB / 0.5214 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.2561, allocations: 292.1 kB / 0.5217 GB, free: 33.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.2562, allocations: 43.33 kB / 0.5218 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.885e-05/0.2562, allocations: 54.98 kB / 0.5218 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006921/0.2569, allocations: 0.6237 MB / 0.5224 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.257, allocations: 0 / 0.5224 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.257, allocations: 24.92 kB / 0.5225 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.257, allocations: 37.8 kB / 0.5225 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005675/0.2576, allocations: 0.4965 MB / 0.523 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2594, allocations: 1.404 MB / 0.5243 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.26, allocations: 439.5 kB / 0.5248 GB, free: 32.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.2602, allocations: 138.1 kB / 0.5249 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.887e-05/0.2602, allocations: 16.5 kB / 0.5249 GB, free: 32.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.2602, allocations: 33.62 kB / 0.5249 GB, free: 32.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.2603, allocations: 3.938 kB / 0.5249 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.0007132/0.261, allocations: 0.4936 MB / 0.5254 GB, free: 32.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.261, allocations: 54.28 kB / 0.5255 GB, free: 32.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004373/0.2614, allocations: 0.5419 MB / 0.526 GB, free: 31.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.2615, allocations: 33.7 kB / 0.526 GB, free: 31.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2616, allocations: 226.9 kB / 0.5263 GB, free: 31.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.961e-05/0.2616, allocations: 88.44 kB / 0.5263 GB, free: 31.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/0.2617, allocations: 10.69 kB / 0.5264 GB, free: 31.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.252e-05/0.2617, allocations: 358.5 kB / 0.5267 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.262, allocations: 153.5 kB / 0.5268 GB, free: 31.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.2622, allocations: 260.7 kB / 0.5271 GB, free: 31.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003247/0.2655, allocations: 1.013 MB / 0.5281 GB, free: 30.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2655, allocations: 0 / 0.5281 GB, free: 30.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006197/0.2661, allocations: 0.4946 MB / 0.5286 GB, free: 30.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2661, allocations: 8.562 kB / 0.5286 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-05/0.2662, allocations: 40.75 kB / 0.5286 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2662, allocations: 8.969 kB / 0.5286 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.2664, allocations: 42.73 kB / 0.5287 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.2664, allocations: 2.656 kB / 0.5287 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.2666, allocations: 63.22 kB / 0.5287 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.2666, allocations: 21 kB / 0.5287 GB, free: 30.63 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: dimlesslength:VARIABLE(start = 0.01 unit = "m" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (m_flow_IN_con_4[3].target,m_flow_IN_con_4[2].target,m_flow_IN_con_4[1].target,m_flow_IN_con_3[3].target,m_flow_IN_con_3[2].target,m_flow_IN_con_3[1].target,m_flow_IN_con_2[3].target,m_flow_IN_con_2[2].target,m_flow_IN_con_2[1].target,m_flow_IN_con_1[3].target,m_flow_IN_con_1[2].target,m_flow_IN_con_1[1].target) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.000216/0.2669, allocations: 235.3 kB / 0.529 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.2669, allocations: 38.34 kB / 0.529 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007808/0.2677, allocations: 0.5324 MB / 0.5295 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.2677, allocations: 5.75 kB / 0.5295 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2677, allocations: 0 / 0.5295 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2678, allocations: 7 kB / 0.5295 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.2682, allocations: 429.4 kB / 0.5299 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.211e-05/0.2683, allocations: 37.36 kB / 0.53 GB, free: 30.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2684, allocations: 30.94 kB / 0.53 GB, free: 30.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2684, allocations: 0 / 0.53 GB, free: 30.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.2685, allocations: 12.5 kB / 0.53 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2685, allocations: 0 / 0.53 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2685, allocations: 2.781 kB / 0.53 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007977/0.2693, allocations: 0.7112 MB / 0.5307 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/0.2694, allocations: 130.3 kB / 0.5308 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/0.2694, allocations: 2.625 kB / 0.5308 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.2696, allocations: 9.812 kB / 0.5309 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.2697, allocations: 23.83 kB / 0.5309 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.2697, allocations: 14.5 kB / 0.5309 GB, free: 29.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003087/0.27, allocations: 404.2 kB / 0.5313 GB, free: 29.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.27, allocations: 2.625 kB / 0.5313 GB, free: 29.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004205/0.2705, allocations: 140.7 kB / 0.5314 GB, free: 29.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (dimlesslength) * 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 (28): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.001053/0.2715, allocations: 1.316 MB / 0.5327 GB, free: 28.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.2721, allocations: 0.6651 MB / 0.5333 GB, free: 28.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2721, allocations: 0 / 0.5333 GB, free: 28.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.2724, allocations: 490.9 kB / 0.5338 GB, free: 27.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.2728, allocations: 94.17 kB / 0.5339 GB, free: 27.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.2767, allocations: 3.354 MB / 0.5372 GB, free: 26.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.277, allocations: 0.8721 MB / 0.538 GB, free: 25.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.2771, allocations: 142.3 kB / 0.5382 GB, free: 25.42 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2771, allocations: 0 / 0.5382 GB, free: 25.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.893/3.171, allocations: 8.996 MB / 0.547 GB, free: 22.82 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Channel_kc_evenGapLaminar_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Channel_kc_evenGapLaminar.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/Channel/kc_evenGapLaminar/kc_evenGapLaminar.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches