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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 109.4 kB / 18.4 MB, free: 4.684 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.001402/0.001402, allocations: 193.2 kB / 19.33 MB, free: 3.758 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.478/1.478, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.00133/0.00133, allocations: 47.92 kB / 329.2 MB, free: 3.355 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09929, allocations: 46.62 MB / 375.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004516/0.1038, allocations: 2.762 MB / 378.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.1057, allocations: 0.8613 MB / 379.4 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.1061, allocations: 7.938 kB / 379.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003686/0.1065, allocations: 63.47 kB / 379.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.107, allocations: 142.9 kB / 379.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.1072, allocations: 83.88 kB / 379.7 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006551/0.1079, allocations: 438.3 kB / 380.1 MB, free: 268 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.1082, allocations: 111.2 kB / 380.2 MB, free: 156 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2446/0.3528, allocations: 156.4 kB / 380.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.3533, allocations: 176.8 kB / 380.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.3535, allocations: 36.44 kB / 380.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.553e-05/0.3535, allocations: 35.31 kB / 380.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.892e-05/0.3536, allocations: 78.08 kB / 380.7 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.3538, allocations: 187.3 kB / 380.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005483/0.3544, allocations: 445.9 kB / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3544, allocations: 2.938 kB / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3544, allocations: 0 / 381.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.3544, allocations: 0 / 381.3 MB, free: 9.789 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.001068/0.3555, allocations: 0.6835 MB / 382 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3556, allocations: 12.11 kB / 382 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.303e-05/0.3557, allocations: 39.84 kB / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.3561, allocations: 301.8 kB / 382.4 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/0.3562, allocations: 51.28 kB / 382.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.3563, allocations: 18.91 kB / 382.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.3568, allocations: 324.7 kB / 382.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3568, allocations: 3.219 kB / 382.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.3568, allocations: 11.98 kB / 382.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.3568, allocations: 4.125 kB / 382.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005197/0.3574, allocations: 201.8 kB / 383 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.3589, allocations: 0.7932 MB / 383.8 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.3595, allocations: 277.8 kB / 384 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.3597, allocations: 117.8 kB / 384.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3597, allocations: 8.609 kB / 384.2 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.3598, allocations: 38.31 kB / 384.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.743e-06/0.3598, allocations: 1.812 kB / 384.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001039/0.3608, allocations: 491.5 kB / 384.7 MB, free: 8.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.3609, allocations: 314.4 kB / 385 MB, free: 7.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.3612, allocations: 283.7 kB / 385.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.3612, allocations: 33.58 kB / 385.3 MB, free: 7.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3613, allocations: 168.6 kB / 385.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.451e-05/0.3614, allocations: 105.5 kB / 385.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3615, allocations: 65.44 kB / 385.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.3616, allocations: 345.4 kB / 386 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.3618, allocations: 96.64 kB / 386.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.3621, allocations: 207.8 kB / 386.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004346/0.3626, allocations: 259.2 kB / 386.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3626, allocations: 6.75 kB / 386.5 MB, free: 7.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005899/0.3632, allocations: 370.3 kB / 386.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.3632, allocations: 33.14 kB / 386.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3632, allocations: 2.141 kB / 386.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.3634, allocations: 37.14 kB / 387 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009616/0.3644, allocations: 163.3 kB / 387.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.3675, allocations: 3.226 MB / 390.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.3679, allocations: 40.3 kB / 390.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.3679, allocations: 9.281 kB / 390.4 MB, free: 3.758 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.0002171/0.3682, allocations: 159.4 kB / 390.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.3683, allocations: 34.77 kB / 390.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.3683, allocations: 36.97 kB / 390.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.3683, allocations: 3.562 kB / 390.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3684, allocations: 2.812 kB / 390.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000617/0.369, allocations: 0.6518 MB / 391.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.3695, allocations: 382.2 kB / 391.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3695, allocations: 0 / 391.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.3708, allocations: 213.6 kB / 391.9 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.132e-05/0.3708, allocations: 25.25 kB / 391.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.3709, allocations: 7.484 kB / 391.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002657/0.3735, allocations: 3.037 MB / 394.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3736, allocations: 4.453 kB / 394.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009991/0.3746, allocations: 0.5174 MB / 395.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.3748, allocations: 137.1 kB / 395.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.3748, allocations: 8.156 kB / 395.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.3751, allocations: 16.17 kB / 395.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.3752, allocations: 22.36 kB / 395.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.3752, allocations: 11.39 kB / 395.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000237/0.3755, allocations: 201.3 kB / 395.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3755, allocations: 0 / 395.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004888/0.376, allocations: 107.1 kB / 395.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.0001557/0.3761, allocations: 118.5 kB / 396.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.3778, allocations: 0.5335 MB / 396.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.3778, allocations: 5.031 kB / 396.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.3792, allocations: 392.3 kB / 397 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005597/0.3797, allocations: 90.69 kB / 397.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.3816, allocations: 0.882 MB / 397.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.3821, allocations: 0.7732 MB / 398.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3822, allocations: 29.38 kB / 398.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3822, allocations: 0 / 398.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of Templates: time 0.01327/0.3955, allocations: 6.803 MB / 405.5 MB, free: 11.38 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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 & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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