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.0006873/0.0006875, allocations: 91.14 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007879/0.000788, allocations: 197.8 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002173/0.0002174, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08415/0.08439, allocations: 51.51 MB / 359.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00255/0.08698, allocations: 2.449 MB / 361.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.08838, allocations: 0.7869 MB / 362.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.08859, allocations: 4 kB / 362.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.08885, allocations: 59.59 kB / 362.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003197/0.08918, allocations: 123.1 kB / 362.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.08939, allocations: 75.86 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.08985, allocations: 418.4 kB / 363.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.09003, allocations: 99.34 kB / 363.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.09023, allocations: 139.4 kB / 363.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.09047, allocations: 171.3 kB / 363.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.09053, allocations: 20 kB / 363.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.09059, allocations: 24 kB / 363.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.986e-05/0.09066, allocations: 63.69 kB / 363.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.09084, allocations: 200.9 kB / 364 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.09119, allocations: 414.7 kB / 364.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.0912, allocations: 0 / 364.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09122, allocations: 4 kB / 364.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.09123, allocations: 3.938 kB / 364.4 MB, free: 8.156 MB / 302.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.0009472/0.09219, allocations: 0.6235 MB / 365 MB, free: 7.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.09224, allocations: 12.03 kB / 365 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.09234, allocations: 71.12 kB / 365.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.47e-05/0.09244, allocations: 44.47 kB / 365.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.09278, allocations: 299.4 kB / 365.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.743e-05/0.09288, allocations: 50.83 kB / 365.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.09293, allocations: 24.38 kB / 365.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.09344, allocations: 339.3 kB / 365.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.09346, allocations: 0 / 365.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.0935, allocations: 16 kB / 365.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.09351, allocations: 7.938 kB / 365.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.09394, allocations: 222 kB / 366 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.09524, allocations: 0.8304 MB / 366.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.09578, allocations: 288.1 kB / 367.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.096, allocations: 124.8 kB / 367.3 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.09604, allocations: 4 kB / 367.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.09607, allocations: 38.56 kB / 367.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/0.09608, allocations: 4 kB / 367.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009607/0.09705, allocations: 499.1 kB / 367.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.09717, allocations: 320.4 kB / 368.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.09744, allocations: 279 kB / 368.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.09748, allocations: 33.7 kB / 368.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.09759, allocations: 180.5 kB / 368.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.874e-05/0.09767, allocations: 98.55 kB / 368.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.09772, allocations: 33.7 kB / 368.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.09784, allocations: 346.7 kB / 369.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.09804, allocations: 99.95 kB / 369.2 MB, free: 2.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.09832, allocations: 212 kB / 369.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004257/0.09876, allocations: 275.5 kB / 369.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09877, allocations: 0 / 369.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005982/0.09937, allocations: 373.6 kB / 370 MB, free: 2.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.09941, allocations: 29.7 kB / 370 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.09943, allocations: 12.08 kB / 370.1 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.09956, allocations: 32.84 kB / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000973/0.1005, allocations: 207.8 kB / 370.3 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1432/0.2437, allocations: 3.07 MB / 373.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.2441, allocations: 33.83 kB / 373.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.2442, allocations: 12.7 kB / 373.4 MB, free: 17.48 MB / 302.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.0001615/0.2443, allocations: 155.3 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.2444, allocations: 41.53 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.19e-05/0.2445, allocations: 39.69 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2445, allocations: 2.469 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2445, allocations: 0.7812 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005381/0.245, allocations: 0.6688 MB / 374.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.2454, allocations: 391.2 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2454, allocations: 0 / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2467, allocations: 256.8 kB / 374.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.952e-05/0.2468, allocations: 23.39 kB / 375 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.2468, allocations: 6.031 kB / 375 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.2492, allocations: 2.905 MB / 377.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2492, allocations: 1.969 kB / 377.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007636/0.2499, allocations: 0.5148 MB / 378.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.2501, allocations: 144.5 kB / 378.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.2501, allocations: 10.55 kB / 378.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.2504, allocations: 25.44 kB / 378.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.886e-05/0.2505, allocations: 21.97 kB / 378.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.2505, allocations: 6.953 kB / 378.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.2507, allocations: 202.5 kB / 378.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2507, allocations: 0 / 378.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003917/0.2511, allocations: 109.5 kB / 378.9 MB, free: 13.72 MB / 302.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.0009536/0.2521, allocations: 1.08 MB / 380 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.2536, allocations: 0.5798 MB / 380.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2536, allocations: 0 / 380.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.255, allocations: 449.6 kB / 381 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005305/0.2555, allocations: 80.45 kB / 381.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.2599, allocations: 3.647 MB / 384.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.2602, allocations: 0.7762 MB / 385.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.2603, allocations: 40.95 kB / 385.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.2605, allocations: 104.2 kB / 385.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2605, allocations: 0 / 385.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.2808, allocations: 8.829 MB / 394.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.2809, allocations: 224.2 kB / 394.7 MB, free: 7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.186, allocations: 6.891 kB / 394.7 MB, free: 6.996 MB / 302.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