Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 221.5 MB / 230.3 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008114/0.0008113, allocations: 99.59 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.484e-05/1.486e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09531, allocations: 50.41 MB / 387.4 MB, free: 7.594 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3011/0.3965, allocations: 82.26 MB / 469.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.3967, allocations: 77.83 kB / 469.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0213/0.418, allocations: 8.255 MB / 478 MB, free: 4.281 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4181, allocations: 0 / 478 MB, free: 4.281 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.4181, allocations: 12.75 kB / 478 MB, free: 4.27 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007824/0.4189, allocations: 0.5881 MB / 478.6 MB, free: 3.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.419, allocations: 12.02 kB / 478.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.931e-05/0.4191, allocations: 43.53 kB / 478.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.4195, allocations: 336.1 kB / 479 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.4195, allocations: 4 kB / 479 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.4196, allocations: 16.69 kB / 479 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002657/0.4198, allocations: 140.8 kB / 479.2 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.4202, allocations: 260.6 kB / 479.4 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.4202, allocations: 3.984 kB / 479.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.4203, allocations: 7.938 kB / 479.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4203, allocations: 4 kB / 479.4 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.4215, allocations: 0.7391 MB / 480.2 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.4218, allocations: 187.3 kB / 480.4 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.422, allocations: 72.86 kB / 480.4 MB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.422, allocations: 7.984 kB / 480.4 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.4222, allocations: 134.2 kB / 480.6 MB, free: 1.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.156e-06/0.4222, allocations: 0 / 480.6 MB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005132/0.4228, allocations: 245.8 kB / 480.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.4229, allocations: 320.4 kB / 481.1 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.4233, allocations: 354.2 kB / 481.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.4233, allocations: 29.7 kB / 481.5 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.4234, allocations: 192.5 kB / 481.7 MB, free: 336 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.4235, allocations: 78.75 kB / 481.8 MB, free: 256 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-06/0.4235, allocations: 3.938 kB / 481.8 MB, free: 252 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4236, allocations: 354.8 kB / 482.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.25e-05/0.4237, allocations: 56 kB / 482.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.4239, allocations: 160.2 kB / 482.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.424, allocations: 77.95 kB / 482.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.424, allocations: 0 / 482.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004147/0.4245, allocations: 268.5 kB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.4245, allocations: 4 kB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.4245, allocations: 0 / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.4247, allocations: 44.77 kB / 482.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.4249, allocations: 52.03 kB / 482.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.4261, allocations: 1.397 MB / 484.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.4264, allocations: 27.78 kB / 484.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.4264, allocations: 8 kB / 484.2 MB, free: 13.64 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.4266, allocations: 116.9 kB / 484.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.4266, allocations: 35.62 kB / 484.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004811/0.4271, allocations: 265.9 kB / 484.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.4271, allocations: 8 kB / 484.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.4271, allocations: 0 / 484.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003842/0.4275, allocations: 0.5711 MB / 485.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008245/0.4284, allocations: 0.685 MB / 485.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4284, allocations: 0 / 485.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002125/0.4286, allocations: 48.06 kB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4286, allocations: 3.938 kB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.4286, allocations: 3.984 kB / 485.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4286, allocations: 11.94 kB / 485.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4287, allocations: 0 / 485.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.4291, allocations: 396 kB / 486.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.4293, allocations: 148.6 kB / 486.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.4293, allocations: 7.938 kB / 486.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.4295, allocations: 7.984 kB / 486.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.4296, allocations: 23.91 kB / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.4296, allocations: 8.062 kB / 486.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002775/0.4299, allocations: 276.6 kB / 486.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4299, allocations: 0 / 486.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004372/0.4303, allocations: 103.8 kB / 486.9 MB, free: 10.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008061/0.4311, allocations: 364.9 kB / 487.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000502/0.4316, allocations: 285.6 kB / 487.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4317, allocations: 0 / 487.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.4318, allocations: 95.84 kB / 487.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.4323, allocations: 86.73 kB / 487.7 MB, free: 9.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009313/0.4332, allocations: 0.5363 MB / 488.2 MB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.4335, allocations: 0.8068 MB / 489 MB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001514/0.4337, allocations: 51.25 kB / 489.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.741e-05/0.4338, allocations: 31.44 kB / 489.1 MB, free: 8.516 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4338, allocations: 3.938 kB / 489.1 MB, free: 8.512 MB / 362.7 MB Notification: Performance of Templates: time 0.009089/0.4429, allocations: 5.189 MB / 494.3 MB, free: 3.398 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches