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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001392, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001226/0.001226, allocations: 88.62 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.34e-05/4.392e-05, allocations: 8 kB / 350.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1246, allocations: 51.49 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3822/0.5069, allocations: 80.05 MB / 482.1 MB, free: 9.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.5071, allocations: 77.59 kB / 482.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01455/0.5217, allocations: 6.134 MB / 488.3 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.5218, allocations: 0 / 488.3 MB, free: 4.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.377e-05/0.5218, allocations: 8 kB / 488.3 MB, free: 4.309 MB / 346.7 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.0009614/0.5228, allocations: 0.5747 MB / 488.9 MB, free: 3.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.5229, allocations: 8.031 kB / 488.9 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.523, allocations: 39.53 kB / 488.9 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.5234, allocations: 297.7 kB / 489.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.138e-05/0.5234, allocations: 53.02 kB / 489.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.5235, allocations: 18.19 kB / 489.3 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.5239, allocations: 300.8 kB / 489.6 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.524, allocations: 1.969 kB / 489.6 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.524, allocations: 9.562 kB / 489.6 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.524, allocations: 8 kB / 489.6 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.5243, allocations: 176.8 kB / 489.8 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.5256, allocations: 0.8062 MB / 490.6 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.5261, allocations: 262.3 kB / 490.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.5262, allocations: 107.8 kB / 490.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.5263, allocations: 7.984 kB / 490.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.5263, allocations: 41.75 kB / 491 MB, free: 1.949 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.114e-06/0.5263, allocations: 0 / 491 MB, free: 1.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005414/0.5269, allocations: 292.7 kB / 491.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.5269, allocations: 312.4 kB / 491.6 MB, free: 1.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.5271, allocations: 241.8 kB / 491.8 MB, free: 1.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.5272, allocations: 40.81 kB / 491.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.5273, allocations: 169.5 kB / 492 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.5273, allocations: 106.5 kB / 492.1 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.5273, allocations: 8 kB / 492.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.597e-05/0.5274, allocations: 338.8 kB / 492.4 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.5276, allocations: 80 kB / 492.5 MB, free: 432 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.5277, allocations: 197 kB / 492.7 MB, free: 192 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.5279, allocations: 138.2 kB / 492.9 MB, free: 52 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5279, allocations: 0 / 492.9 MB, free: 52 kB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005966/0.5285, allocations: 357.9 kB / 493.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.5286, allocations: 29.7 kB / 493.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5286, allocations: 0 / 493.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.5288, allocations: 44.84 kB / 493.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.5298, allocations: 207.8 kB / 493.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/0.5329, allocations: 2.948 MB / 496.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.5332, allocations: 35.78 kB / 496.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.5332, allocations: 12 kB / 496.5 MB, free: 12.14 MB / 362.7 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.5334, allocations: 134.9 kB / 496.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.5335, allocations: 27.72 kB / 496.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.477e-05/0.5336, allocations: 39.2 kB / 496.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.5336, allocations: 4 kB / 496.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5336, allocations: 4 kB / 496.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007207/0.5343, allocations: 0.6354 MB / 497.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005323/0.5348, allocations: 386.4 kB / 497.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5349, allocations: 4 kB / 497.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.5362, allocations: 251.7 kB / 497.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.5363, allocations: 28.84 kB / 498 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.5363, allocations: 4.875 kB / 498 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002697/0.539, allocations: 2.793 MB / 0.489 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5391, allocations: 3.953 kB / 0.489 GB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.5398, allocations: 493 kB / 0.4895 GB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002025/0.54, allocations: 136.7 kB / 0.4896 GB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.277e-05/0.5401, allocations: 11.95 kB / 0.4896 GB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.5403, allocations: 24.05 kB / 0.4897 GB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.5404, allocations: 19.97 kB / 0.4897 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.5404, allocations: 11.98 kB / 0.4897 GB, free: 6.703 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.5406, allocations: 196.3 kB / 0.4899 GB, free: 6.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5406, allocations: 0 / 0.4899 GB, free: 6.508 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.5411, allocations: 107.9 kB / 0.49 GB, free: 6.402 MB / 362.7 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001976/0.5413, allocations: 123.2 kB / 0.4901 GB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.5428, allocations: 0.5326 MB / 0.4906 GB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.5428, allocations: 0 / 0.4906 GB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.5441, allocations: 410.3 kB / 0.491 GB, free: 5.305 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.5446, allocations: 81.62 kB / 0.4911 GB, free: 5.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.5461, allocations: 0.6575 MB / 0.4917 GB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.5465, allocations: 0.784 MB / 0.4925 GB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.5467, allocations: 34.95 kB / 0.4925 GB, free: 3.699 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.535e-05/0.5468, allocations: 27.44 kB / 0.4926 GB, free: 3.672 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.5468, allocations: 0 / 0.4926 GB, free: 3.672 MB / 362.7 MB Notification: Performance of Templates: time 0.01086/0.5576, allocations: 5.486 MB / 0.4979 GB, free: 14.35 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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 & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches