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.001172/0.001172, allocations: 109.1 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 63.36 kB / 306.5 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.08107, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003773/0.08488, allocations: 2.807 MB / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.08642, allocations: 0.853 MB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002858/0.08673, allocations: 4 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.08706, allocations: 59.58 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.08745, allocations: 123.1 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.0877, allocations: 75.86 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005404/0.08825, allocations: 434.1 kB / 361.4 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.08845, allocations: 104.4 kB / 361.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.0887, allocations: 155.4 kB / 361.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.08898, allocations: 183.2 kB / 361.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.748e-05/0.08906, allocations: 36 kB / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.257e-05/0.08913, allocations: 36 kB / 361.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.08921, allocations: 75.75 kB / 362 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.0894, allocations: 195.1 kB / 362.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003723/0.08978, allocations: 426.9 kB / 362.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.08979, allocations: 7.938 kB / 362.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.0898, allocations: 0 / 362.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.08981, allocations: 0 / 362.6 MB, free: 8.773 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.001011/0.09083, allocations: 0.6833 MB / 363.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.09087, allocations: 11.97 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.156e-05/0.09097, allocations: 75.12 kB / 363.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.844e-05/0.09105, allocations: 40.56 kB / 363.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.09139, allocations: 299.4 kB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.79e-05/0.09149, allocations: 54.81 kB / 363.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.09154, allocations: 24.38 kB / 363.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.09204, allocations: 335.3 kB / 364.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.09207, allocations: 0 / 364.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.0921, allocations: 12 kB / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.09212, allocations: 11.98 kB / 364.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004/0.09252, allocations: 206.1 kB / 364.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.09382, allocations: 0.8265 MB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004846/0.09432, allocations: 270.9 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.09453, allocations: 120.9 kB / 365.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.09457, allocations: 11.98 kB / 365.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.09461, allocations: 38.56 kB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.453e-06/0.09461, allocations: 0 / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009386/0.09555, allocations: 479.2 kB / 366.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.09568, allocations: 324.4 kB / 366.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/0.09592, allocations: 283 kB / 366.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.09596, allocations: 33.7 kB / 366.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.09607, allocations: 176.6 kB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.09614, allocations: 102.5 kB / 367 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.09625, allocations: 65.7 kB / 367 MB, free: 3.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.09636, allocations: 346.7 kB / 367.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.09656, allocations: 103.6 kB / 367.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.09683, allocations: 204.2 kB / 367.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.09725, allocations: 267.5 kB / 367.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.09726, allocations: 0 / 367.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005677/0.09783, allocations: 369.6 kB / 368.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.09788, allocations: 33.69 kB / 368.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.09789, allocations: 0 / 368.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001385/0.09803, allocations: 40.84 kB / 368.4 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009368/0.09898, allocations: 159.8 kB / 368.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1273/0.2263, allocations: 3.231 MB / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.2268, allocations: 31.97 kB / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.2268, allocations: 12.3 kB / 371.8 MB, free: 19.04 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.0002274/0.227, allocations: 157.8 kB / 371.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.2271, allocations: 36.67 kB / 372 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.58e-05/0.2272, allocations: 38.69 kB / 372 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2272, allocations: 5.75 kB / 372 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2272, allocations: 1.047 kB / 372 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006714/0.2279, allocations: 0.6504 MB / 372.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.2284, allocations: 397.4 kB / 373.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2284, allocations: 3.156 kB / 373.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.2297, allocations: 206.5 kB / 373.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.011e-05/0.2298, allocations: 25.12 kB / 373.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.2298, allocations: 5.703 kB / 373.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002435/0.2322, allocations: 3.036 MB / 376.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2323, allocations: 0 / 376.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007338/0.233, allocations: 0.5136 MB / 376.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.2331, allocations: 141.7 kB / 377 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.2332, allocations: 7.562 kB / 377 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.2335, allocations: 21.89 kB / 377 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.2336, allocations: 21.78 kB / 377 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.2336, allocations: 10.73 kB / 377 MB, free: 15.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.2338, allocations: 200.5 kB / 377.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2338, allocations: 0 / 377.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004394/0.2342, allocations: 110.8 kB / 377.4 MB, free: 15.04 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.000873/0.2351, allocations: 1.073 MB / 378.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.2365, allocations: 0.5412 MB / 379 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2366, allocations: 1.375 kB / 379 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.2378, allocations: 407.5 kB / 379.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.2384, allocations: 83.91 kB / 379.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.2423, allocations: 3.526 MB / 383 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.2425, allocations: 0.7763 MB / 383.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.2427, allocations: 36.97 kB / 383.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.2428, allocations: 106.2 kB / 383.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2429, allocations: 0 / 383.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4982/0.7411, allocations: 9.29 MB / 393.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.7413, allocations: 232.1 kB / 393.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.011/2.752, allocations: 1.375 kB / 393.4 MB, free: 7.652 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