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.001022/0.001022, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 62.95 kB / 306.4 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.0931, allocations: 50.53 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004324/0.09747, allocations: 2.803 MB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09927, allocations: 0.853 MB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.0996, allocations: 4 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003291/0.09996, allocations: 59.55 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003606/0.1003, allocations: 119.1 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.1006, allocations: 79.88 kB / 360.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.1011, allocations: 418.4 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1013, allocations: 91.34 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.1015, allocations: 147.4 kB / 361.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.1017, allocations: 171.2 kB / 361.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.344e-05/0.1018, allocations: 24 kB / 361.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.13e-05/0.1019, allocations: 24 kB / 361.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.921e-05/0.102, allocations: 63.75 kB / 361.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.1022, allocations: 187.1 kB / 361.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.1026, allocations: 418.8 kB / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1026, allocations: 0 / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1026, allocations: 0 / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.1027, allocations: 0 / 362.3 MB, free: 8.996 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.001159/0.1038, allocations: 0.6855 MB / 363 MB, free: 8.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1039, allocations: 16.02 kB / 363 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.391e-05/0.104, allocations: 67.14 kB / 363.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.1041, allocations: 40.56 kB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.1045, allocations: 307.3 kB / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.189e-05/0.1046, allocations: 46.83 kB / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.1046, allocations: 24.38 kB / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.1051, allocations: 335.3 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.1052, allocations: 0 / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.1052, allocations: 16 kB / 363.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1052, allocations: 8 kB / 363.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004202/0.1056, allocations: 214 kB / 364 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.107, allocations: 0.8226 MB / 364.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005236/0.1075, allocations: 272.1 kB / 365.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.1078, allocations: 120.8 kB / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.1078, allocations: 4 kB / 365.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1078, allocations: 42.56 kB / 365.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1078, allocations: 0 / 365.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009758/0.1088, allocations: 487.2 kB / 365.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.1089, allocations: 316.4 kB / 366.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.1092, allocations: 287 kB / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.1093, allocations: 37.7 kB / 366.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1094, allocations: 168.6 kB / 366.6 MB, free: 4.395 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.1094, allocations: 110.4 kB / 366.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.552e-05/0.1095, allocations: 61.7 kB / 366.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1097, allocations: 350.7 kB / 367.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1099, allocations: 87.72 kB / 367.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.1102, allocations: 208.2 kB / 367.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.1106, allocations: 271.5 kB / 367.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1106, allocations: 0 / 367.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005982/0.1112, allocations: 369.7 kB / 368 MB, free: 2.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.1112, allocations: 33.64 kB / 368 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1112, allocations: 4.094 kB / 368 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.1114, allocations: 40.78 kB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009473/0.1124, allocations: 159.8 kB / 368.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1582/0.2705, allocations: 3.002 MB / 371.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.2709, allocations: 30.06 kB / 371.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.271, allocations: 12.58 kB / 371.3 MB, free: 19.08 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.000162/0.2712, allocations: 157.5 kB / 371.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.724e-05/0.2712, allocations: 36.42 kB / 371.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.993e-05/0.2713, allocations: 41.45 kB / 371.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.2713, allocations: 3.094 kB / 371.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2713, allocations: 4.594 kB / 371.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005565/0.2719, allocations: 0.6509 MB / 372.2 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.2723, allocations: 388 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2723, allocations: 3.359 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.2736, allocations: 205.6 kB / 372.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.249e-05/0.2737, allocations: 26.19 kB / 372.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.2737, allocations: 10.58 kB / 372.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.276, allocations: 2.825 MB / 375.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.276, allocations: 1.609 kB / 375.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007475/0.2768, allocations: 0.5046 MB / 376.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.2769, allocations: 140.2 kB / 376.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.277, allocations: 11 kB / 376.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.2772, allocations: 17.17 kB / 376.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.91e-05/0.2773, allocations: 24.06 kB / 376.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.2773, allocations: 6.859 kB / 376.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.2775, allocations: 204.3 kB / 376.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2775, allocations: 0.5938 kB / 376.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000455/0.278, allocations: 108.2 kB / 376.6 MB, free: 15.33 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.001006/0.279, allocations: 1.066 MB / 377.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.2805, allocations: 0.5353 MB / 378.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.2805, allocations: 1.156 kB / 378.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.2818, allocations: 400.6 kB / 378.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000558/0.2824, allocations: 91.55 kB / 378.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004223/0.2866, allocations: 3.521 MB / 382.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.2869, allocations: 0.7809 MB / 383 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001893/0.2871, allocations: 36.91 kB / 383 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.2872, allocations: 106.2 kB / 383.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2872, allocations: 0 / 383.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.312, allocations: 8.937 MB / 392.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/0.3122, allocations: 226.4 kB / 392.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.267, allocations: 0 / 392.3 MB, free: 8.176 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