Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 67.88 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2595, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004698/0.2643, allocations: 2.756 MB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.2659, allocations: 0.849 MB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.2662, allocations: 7.938 kB / 412.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003529/0.2666, allocations: 75.39 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.267, allocations: 130.9 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.2673, allocations: 95.81 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006281/0.2679, allocations: 441.8 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.2682, allocations: 103.3 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.2684, allocations: 163.4 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.2687, allocations: 179.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.39e-05/0.2687, allocations: 32 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.2688, allocations: 36 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.482e-05/0.2689, allocations: 75.73 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.2691, allocations: 191.1 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.2696, allocations: 452.1 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2696, allocations: 0 / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2696, allocations: 4 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.2697, allocations: 0 / 414.3 MB, free: 12 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001162/0.2708, allocations: 0.6679 MB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2709, allocations: 8.031 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.271, allocations: 79.06 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.439e-05/0.2711, allocations: 44.47 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/0.2716, allocations: 307.4 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.2717, allocations: 46.83 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.2717, allocations: 24.38 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.2723, allocations: 339.2 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.2723, allocations: 3.906 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.2723, allocations: 12 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.2724, allocations: 4 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.2728, allocations: 218.1 kB / 416 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.2742, allocations: 0.8071 MB / 416.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005466/0.2748, allocations: 278.8 kB / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.275, allocations: 116.8 kB / 417.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.2751, allocations: 7.984 kB / 417.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.2751, allocations: 42.56 kB / 417.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/0.2751, allocations: 0 / 417.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001042/0.2762, allocations: 487.3 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.2763, allocations: 328.4 kB / 418.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.2766, allocations: 282.9 kB / 418.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.2766, allocations: 33.7 kB / 418.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2767, allocations: 168.6 kB / 418.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/0.2768, allocations: 106.5 kB / 418.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.277, allocations: 65.7 kB / 418.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2771, allocations: 346.7 kB / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.2773, allocations: 91.95 kB / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.2776, allocations: 208.2 kB / 419.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.2781, allocations: 264.1 kB / 419.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2781, allocations: 3.938 kB / 419.6 MB, free: 6.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006892/0.2788, allocations: 361.6 kB / 419.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.2788, allocations: 37.8 kB / 420 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2788, allocations: 3.984 kB / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.279, allocations: 36.84 kB / 420 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.28, allocations: 167.8 kB / 420.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.2838, allocations: 3.232 MB / 423.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.2841, allocations: 35.72 kB / 423.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.2841, allocations: 8 kB / 423.5 MB, free: 2.098 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.2843, allocations: 161.3 kB / 423.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.2844, allocations: 35.62 kB / 423.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.702e-05/0.2844, allocations: 39.08 kB / 423.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2845, allocations: 4 kB / 423.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2845, allocations: 4.031 kB / 423.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005931/0.2851, allocations: 0.6539 MB / 424.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005415/0.2856, allocations: 389.2 kB / 424.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.2856, allocations: 7.938 kB / 424.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.2869, allocations: 199.8 kB / 424.9 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.937e-05/0.287, allocations: 28.84 kB / 425 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.287, allocations: 8.188 kB / 425 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.2901, allocations: 3.038 MB / 428 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2901, allocations: 3.984 kB / 428 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008453/0.2909, allocations: 0.5089 MB / 428.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.2912, allocations: 136.9 kB / 428.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.295e-05/0.2912, allocations: 11.94 kB / 428.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.2915, allocations: 23.98 kB / 428.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.2916, allocations: 27.95 kB / 428.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2916, allocations: 7.984 kB / 428.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.2918, allocations: 202 kB / 428.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2918, allocations: 0 / 428.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.2923, allocations: 107.8 kB / 429 MB, free: 12.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001179/0.2935, allocations: 1.053 MB / 430.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2951, allocations: 0.5412 MB / 430.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.2951, allocations: 4 kB / 430.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.2965, allocations: 398.4 kB / 431 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/0.2971, allocations: 88.48 kB / 431.1 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.302, allocations: 3.394 MB / 434.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.3024, allocations: 0.7837 MB / 435.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001669/0.3025, allocations: 34.97 kB / 435.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.3027, allocations: 107.4 kB / 435.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3027, allocations: 0 / 435.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03339/0.3361, allocations: 9.826 MB / 445.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.3, allocations: 7.953 kB / 445.3 MB, free: 11.83 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches