Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 114.5 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 187 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 51.94 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08829, allocations: 46.61 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004093/0.09242, allocations: 2.757 MB / 377.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.09408, allocations: 0.8691 MB / 378.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002888/0.09439, allocations: 11.94 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003425/0.09479, allocations: 59.48 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004396/0.09524, allocations: 138.9 kB / 378.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.09554, allocations: 91.88 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.09621, allocations: 446.3 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.09645, allocations: 107.1 kB / 379.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.09671, allocations: 159.5 kB / 379.2 MB, free: 468 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.09703, allocations: 171.2 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.526e-05/0.09712, allocations: 39.94 kB / 379.4 MB, free: 256 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.92e-05/0.0972, allocations: 40 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.09729, allocations: 79.73 kB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.199/0.2963, allocations: 189 kB / 379.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007755/0.2972, allocations: 436 kB / 380.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2972, allocations: 0 / 380.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2972, allocations: 1.031 kB / 380.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.2972, allocations: 0 / 380.2 MB, free: 9.738 MB / 318.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.001302/0.2985, allocations: 0.6751 MB / 380.8 MB, free: 9.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.2986, allocations: 10.22 kB / 380.9 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.2987, allocations: 69.44 kB / 380.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.2988, allocations: 48.09 kB / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004955/0.2993, allocations: 307.5 kB / 381.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.2994, allocations: 51.25 kB / 381.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.2995, allocations: 22.77 kB / 381.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.3, allocations: 339.5 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3001, allocations: 0.8438 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3001, allocations: 17.25 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.3001, allocations: 5.875 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.3006, allocations: 207.7 kB / 381.9 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.3021, allocations: 0.8177 MB / 382.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.3027, allocations: 274.8 kB / 383 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.303, allocations: 116.9 kB / 383.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.303, allocations: 11.3 kB / 383.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.303, allocations: 37.97 kB / 383.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.303, allocations: 0 / 383.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009541/0.304, allocations: 484.3 kB / 383.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.3041, allocations: 319.3 kB / 383.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.3043, allocations: 281.9 kB / 384.2 MB, free: 7.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3044, allocations: 35.89 kB / 384.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.38e-05/0.3045, allocations: 176.2 kB / 384.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.3045, allocations: 108.4 kB / 384.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3046, allocations: 67.81 kB / 384.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/0.3047, allocations: 341.2 kB / 384.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.3049, allocations: 94.62 kB / 385 MB, free: 7.227 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.3052, allocations: 206.5 kB / 385.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.3056, allocations: 262.1 kB / 385.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3056, allocations: 0 / 385.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005851/0.3062, allocations: 371.7 kB / 385.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.3062, allocations: 31.8 kB / 385.9 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3062, allocations: 3.906 kB / 385.9 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000151/0.3064, allocations: 42.3 kB / 385.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.3074, allocations: 160.2 kB / 386.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/0.3103, allocations: 3.235 MB / 389.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.3106, allocations: 41.66 kB / 389.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.3106, allocations: 7.25 kB / 389.4 MB, free: 3.754 MB / 318.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.0001481/0.3108, allocations: 156.5 kB / 389.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.3109, allocations: 29.42 kB / 389.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.615e-05/0.3109, allocations: 37.81 kB / 389.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3109, allocations: 3.438 kB / 389.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.311, allocations: 10.41 kB / 389.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005522/0.3115, allocations: 0.6488 MB / 390.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004859/0.312, allocations: 396.3 kB / 390.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.312, allocations: 1.219 kB / 390.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.3133, allocations: 201.9 kB / 390.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.397e-05/0.3134, allocations: 31.34 kB / 390.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.3135, allocations: 2.094 kB / 390.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.3161, allocations: 3.039 MB / 393.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3161, allocations: 4.938 kB / 393.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008278/0.317, allocations: 0.5138 MB / 394.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.3171, allocations: 138.4 kB / 394.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.3172, allocations: 6.469 kB / 394.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3175, allocations: 16.88 kB / 394.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.59e-05/0.3175, allocations: 36.8 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.3176, allocations: 11.33 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002423/0.3178, allocations: 199.6 kB / 394.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3178, allocations: 0 / 394.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004602/0.3183, allocations: 109.7 kB / 394.9 MB, free: 15.16 MB / 334.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.001259/0.3196, allocations: 1.054 MB / 396 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3211, allocations: 0.5321 MB / 396.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.3212, allocations: 1.25 kB / 396.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.3226, allocations: 409.7 kB / 396.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005397/0.3232, allocations: 87.36 kB / 397 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/0.3288, allocations: 3.399 MB / 400.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.3292, allocations: 0.7773 MB / 401.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002233/0.3294, allocations: 38.36 kB / 401.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.3296, allocations: 104.8 kB / 401.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3296, allocations: 0 / 401.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.3656, allocations: 9.828 MB / 411.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.35, allocations: 9.094 kB / 411.1 MB, free: 7.328 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches