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.001081/0.001081, allocations: 106.6 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001232, allocations: 218.5 kB / 18.59 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.94 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09336/0.0947, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004082/0.09882, allocations: 2.76 MB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1003, allocations: 0.8607 MB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003397/0.1007, allocations: 4 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.1012, allocations: 75.34 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004228/0.1016, allocations: 130.9 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.102, allocations: 95.81 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.1026, allocations: 430.4 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.1028, allocations: 96.44 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/0.103, allocations: 163.4 kB / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.1033, allocations: 179.2 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.636e-05/0.1033, allocations: 36 kB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.821e-05/0.1034, allocations: 36 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.801e-05/0.1035, allocations: 71.75 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.1037, allocations: 195.1 kB / 362.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003999/0.1041, allocations: 434.8 kB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1041, allocations: 0 / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1041, allocations: 0 / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1042, allocations: 3.938 kB / 363.1 MB, free: 8.469 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.00113/0.1053, allocations: 0.6911 MB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1053, allocations: 11.97 kB / 363.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.789e-05/0.1054, allocations: 59.2 kB / 363.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.662e-05/0.1055, allocations: 40.56 kB / 363.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.1059, allocations: 307.3 kB / 364.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.463e-05/0.106, allocations: 58.81 kB / 364.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.1061, allocations: 24.38 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.1066, allocations: 335.3 kB / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1066, allocations: 0 / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.1066, allocations: 12 kB / 364.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1066, allocations: 11.92 kB / 364.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.1071, allocations: 210.1 kB / 364.8 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.1084, allocations: 0.8148 MB / 365.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.109, allocations: 271 kB / 365.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.1092, allocations: 116.9 kB / 366 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.1092, allocations: 11.98 kB / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.1093, allocations: 42.55 kB / 366.1 MB, free: 5.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.453e-06/0.1093, allocations: 0 / 366.1 MB, free: 5.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009879/0.1103, allocations: 495.2 kB / 366.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.1104, allocations: 312.4 kB / 366.9 MB, free: 4.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.1107, allocations: 287 kB / 367.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.1107, allocations: 33.7 kB / 367.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1108, allocations: 172.6 kB / 367.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.111, allocations: 102.5 kB / 367.5 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.1111, allocations: 65.7 kB / 367.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1113, allocations: 342.7 kB / 367.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.1116, allocations: 103.7 kB / 368 MB, free: 3.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.1119, allocations: 196.2 kB / 368.2 MB, free: 3.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.1124, allocations: 275.4 kB / 368.4 MB, free: 2.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1124, allocations: 0 / 368.4 MB, free: 2.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006231/0.113, allocations: 369.6 kB / 368.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.1131, allocations: 29.7 kB / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1131, allocations: 0 / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.1133, allocations: 40.83 kB / 368.9 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009525/0.1142, allocations: 163.9 kB / 369 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.14/0.2542, allocations: 3.232 MB / 372.2 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.2546, allocations: 39.86 kB / 372.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.2546, allocations: 8.234 kB / 372.3 MB, free: 18.85 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.0001648/0.2548, allocations: 162.3 kB / 372.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.639e-05/0.2549, allocations: 32.31 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.988e-05/0.255, allocations: 38.17 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.255, allocations: 7.062 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.255, allocations: 3.469 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005349/0.2555, allocations: 0.6532 MB / 373.2 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003704/0.2559, allocations: 390.6 kB / 373.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2559, allocations: 3.25 kB / 373.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.2571, allocations: 210.6 kB / 373.8 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.358e-05/0.2572, allocations: 20.58 kB / 373.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.2572, allocations: 6.141 kB / 373.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.2595, allocations: 3.043 MB / 376.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2595, allocations: 6.781 kB / 376.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/0.2602, allocations: 0.5042 MB / 377.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.2603, allocations: 136.7 kB / 377.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.2603, allocations: 8.734 kB / 377.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.2606, allocations: 15.22 kB / 377.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.694e-05/0.2607, allocations: 26.67 kB / 377.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.2607, allocations: 11.67 kB / 377.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.2608, allocations: 199 kB / 377.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2609, allocations: 0 / 377.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.2613, allocations: 112.3 kB / 377.9 MB, free: 14.76 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.0008182/0.2621, allocations: 1.064 MB / 378.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.2634, allocations: 0.5515 MB / 379.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2634, allocations: 1.375 kB / 379.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.2647, allocations: 394 kB / 379.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.2652, allocations: 90.38 kB / 379.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.2688, allocations: 3.423 MB / 383.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.269, allocations: 0.7745 MB / 384.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.2691, allocations: 36.86 kB / 384.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2693, allocations: 105.9 kB / 384.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2693, allocations: 0 / 384.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09676/0.366, allocations: 9.472 MB / 393.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.66, allocations: 2.812 kB / 393.8 MB, free: 7.543 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