Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.718/1.718, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 98.06 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.636e-05/1.649e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3559/0.4638, allocations: 80.41 MB / 475.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.464, allocations: 71.38 kB / 475.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02108/0.4851, allocations: 9.351 MB / 485 MB, free: 5.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4851, allocations: 0 / 485 MB, free: 5.176 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.4852, allocations: 8 kB / 485 MB, free: 5.168 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008095/0.486, allocations: 0.6821 MB / 485.7 MB, free: 4.469 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.486, allocations: 12.03 kB / 485.7 MB, free: 4.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.4861, allocations: 59.34 kB / 485.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.4866, allocations: 367.6 kB / 486.1 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.598e-05/0.4867, allocations: 54.08 kB / 486.2 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.4867, allocations: 23.94 kB / 486.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003788/0.4871, allocations: 237.4 kB / 486.4 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.4876, allocations: 387.5 kB / 486.8 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4876, allocations: 3.984 kB / 486.8 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.4876, allocations: 0 / 486.8 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.4877, allocations: 8 kB / 486.8 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.4892, allocations: 1.183 MB / 488 MB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008763/0.4901, allocations: 410.5 kB / 488.4 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.4903, allocations: 120.1 kB / 488.5 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.4903, allocations: 8.266 kB / 488.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.4904, allocations: 38.47 kB / 488.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.493e-06/0.4904, allocations: 0 / 488.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0005463/0.4909, allocations: 314.1 kB / 488.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/0.491, allocations: 448.7 kB / 489.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/0.4913, allocations: 338 kB / 489.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.4914, allocations: 25.7 kB / 489.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.4915, allocations: 232.6 kB / 489.9 MB, free: 0.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.4915, allocations: 115.7 kB / 490 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/0.4915, allocations: 0 / 490 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.4916, allocations: 347.4 kB / 490.3 MB, free: 368 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.4917, allocations: 90.19 kB / 490.4 MB, free: 316 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.4919, allocations: 226.6 kB / 490.6 MB, free: 92 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.4921, allocations: 120.2 kB / 490.8 MB, free: 16 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4921, allocations: 0 / 490.8 MB, free: 16 kB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006067/0.4927, allocations: 371.5 kB / 491.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.4928, allocations: 33.7 kB / 491.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.4928, allocations: 0 / 491.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/0.4931, allocations: 74.81 kB / 491.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/0.4934, allocations: 71.2 kB / 491.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.4955, allocations: 2.647 MB / 493.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.4958, allocations: 35.7 kB / 494 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.4959, allocations: 11.44 kB / 494 MB, free: 12.8 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001734/0.4961, allocations: 128 kB / 494.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.597e-05/0.4961, allocations: 43.53 kB / 494.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.516e-05/0.4962, allocations: 44.5 kB / 494.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.4962, allocations: 4 kB / 494.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4963, allocations: 0 / 494.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005004/0.4968, allocations: 0.6186 MB / 494.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.4978, allocations: 0.8174 MB / 495.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4978, allocations: 3.984 kB / 495.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003363/0.4981, allocations: 71.89 kB / 495.7 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4982, allocations: 4 kB / 495.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.4982, allocations: 3.875 kB / 495.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.4982, allocations: 4 kB / 495.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4982, allocations: 0 / 495.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005487/0.4988, allocations: 486.3 kB / 496.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.4989, allocations: 157.2 kB / 496.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.499, allocations: 7.938 kB / 496.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4992, allocations: 11.98 kB / 496.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.4993, allocations: 15.97 kB / 496.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.4993, allocations: 11.38 kB / 496.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002404/0.4995, allocations: 260.3 kB / 496.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4995, allocations: 4.062 kB / 496.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004337/0.5, allocations: 131.8 kB / 496.8 MB, free: 10.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001769/0.5002, allocations: 114.4 kB / 496.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008499/0.501, allocations: 0.5184 MB / 497.4 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.501, allocations: 4.062 kB / 497.4 MB, free: 9.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.5012, allocations: 114.1 kB / 497.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.5017, allocations: 110.4 kB / 497.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.5028, allocations: 0.5873 MB / 498.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.5032, allocations: 0.8237 MB / 499.1 MB, free: 8.129 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.5034, allocations: 55.31 kB / 499.1 MB, free: 8.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.357e-05/0.5035, allocations: 43.42 kB / 499.2 MB, free: 8.031 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5035, allocations: 0 / 499.2 MB, free: 8.031 MB / 362.7 MB Notification: Performance of Templates: time 0.01149/0.515, allocations: 6.524 MB / 0.4938 GB, free: 1.703 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches