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.001346/0.001346, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2474, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004084/0.2515, allocations: 2.767 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.2529, allocations: 0.8568 MB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.2531, allocations: 0 / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.2534, allocations: 71.41 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.2537, allocations: 138.9 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.2539, allocations: 87.81 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004795/0.2544, allocations: 442.3 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.2546, allocations: 103.3 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.2548, allocations: 155.4 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.255, allocations: 179.2 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.145e-05/0.2551, allocations: 32 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.903e-05/0.2552, allocations: 36 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.661e-05/0.2553, allocations: 83.73 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.2555, allocations: 187.1 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005018/0.256, allocations: 445.2 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.256, allocations: 4 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.256, allocations: 4 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.842e-06/0.2561, allocations: 0 / 414.4 MB, free: 11.88 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.00114/0.2572, allocations: 0.6793 MB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.2573, allocations: 8.031 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.2574, allocations: 75.23 kB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.788e-05/0.2575, allocations: 48.66 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.2579, allocations: 299.7 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.395e-05/0.258, allocations: 46.83 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.2581, allocations: 32.27 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005487/0.2587, allocations: 343.2 kB / 415.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2587, allocations: 0 / 415.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.2587, allocations: 12 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.2587, allocations: 8 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.2592, allocations: 214.1 kB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.2606, allocations: 0.8188 MB / 416.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005564/0.2612, allocations: 274.9 kB / 417.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.2614, allocations: 116.8 kB / 417.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.2615, allocations: 4 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.2615, allocations: 42.56 kB / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.2615, allocations: 0 / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001085/0.2626, allocations: 495.4 kB / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001874/0.2628, allocations: 324.4 kB / 418.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.2631, allocations: 279 kB / 418.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.2632, allocations: 37.7 kB / 418.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2633, allocations: 172.8 kB / 418.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.6e-05/0.2634, allocations: 119 kB / 418.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.2635, allocations: 61.7 kB / 418.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2637, allocations: 346.7 kB / 419.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.2639, allocations: 99.95 kB / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.2642, allocations: 204.2 kB / 419.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.2647, allocations: 264.1 kB / 419.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2647, allocations: 4 kB / 419.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006542/0.2654, allocations: 361.8 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.2654, allocations: 37.8 kB / 420.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2655, allocations: 0 / 420.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.2656, allocations: 36.84 kB / 420.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009395/0.2666, allocations: 167.8 kB / 420.3 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003883/0.2705, allocations: 3.229 MB / 423.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.2708, allocations: 39.88 kB / 423.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.2709, allocations: 8 kB / 423.6 MB, free: 1.949 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.0002155/0.2711, allocations: 153.7 kB / 423.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.2712, allocations: 35.81 kB / 423.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.686e-05/0.2713, allocations: 43.08 kB / 423.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2713, allocations: 0 / 423.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2713, allocations: 3.938 kB / 423.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007432/0.272, allocations: 0.6579 MB / 424.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.2725, allocations: 393.2 kB / 424.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2725, allocations: 0 / 424.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.2738, allocations: 200.1 kB / 425 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.25e-05/0.2739, allocations: 28.78 kB / 425.1 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.2739, allocations: 12 kB / 425.1 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.2772, allocations: 3.046 MB / 428.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2773, allocations: 0 / 428.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008901/0.2782, allocations: 0.5052 MB / 428.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.2784, allocations: 144.8 kB / 428.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.2784, allocations: 7.938 kB / 428.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.2787, allocations: 31.98 kB / 428.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.947e-05/0.2788, allocations: 19.97 kB / 428.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.2788, allocations: 11.98 kB / 428.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.279, allocations: 198 kB / 429 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.279, allocations: 0 / 429 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.2795, allocations: 107.9 kB / 429.1 MB, free: 11.89 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.001214/0.2807, allocations: 1.06 MB / 430.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.2823, allocations: 0.5334 MB / 430.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2823, allocations: 0 / 430.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.2837, allocations: 398.4 kB / 431.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.2843, allocations: 84.72 kB / 431.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004947/0.2892, allocations: 3.421 MB / 434.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.2897, allocations: 0.7837 MB / 435.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.2899, allocations: 34.97 kB / 435.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.29, allocations: 107.4 kB / 435.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of SimCode: time 6.22e-07/0.29, allocations: 3.938 kB / 435.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.3293, allocations: 9.621 MB / 445.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.12, allocations: 7.938 kB / 445.2 MB, free: 11.87 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.1.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