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.001298/0.001298, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 227.2 MB / 245 MB, free: 5.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009104/0.0009104, allocations: 103.3 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 4 kB / 357.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1934, allocations: 51.49 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09072/0.2841, allocations: 81.15 MB / 490.6 MB, free: 9.457 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.2844, allocations: 67.97 kB / 490.6 MB, free: 9.391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02462/0.309, allocations: 9.468 MB / 0.4884 GB, free: 15.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3091, allocations: 0 / 0.4884 GB, free: 15.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.559e-05/0.3091, allocations: 19.94 kB / 0.4884 GB, free: 15.84 MB / 378.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.001317/0.3104, allocations: 0.757 MB / 0.4891 GB, free: 15.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3105, allocations: 8.031 kB / 0.4891 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.3107, allocations: 63.34 kB / 0.4892 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.3113, allocations: 366 kB / 0.4895 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.3114, allocations: 66.3 kB / 0.4896 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.28e-05/0.3115, allocations: 36 kB / 0.4896 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.3122, allocations: 453 kB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3123, allocations: 3.938 kB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.3123, allocations: 16 kB / 0.4901 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3123, allocations: 8 kB / 0.4901 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000575/0.3129, allocations: 286.5 kB / 0.4904 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.315, allocations: 1.256 MB / 0.4916 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3162, allocations: 453.2 kB / 0.492 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.3162, allocations: 4.281 kB / 0.492 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.3162, allocations: 42.84 kB / 0.4921 GB, free: 11.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.874e-06/0.3162, allocations: 0 / 0.4921 GB, free: 11.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001102/0.3173, allocations: 0.6245 MB / 0.4927 GB, free: 11.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.3175, allocations: 448.9 kB / 0.4931 GB, free: 10.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.318, allocations: 397.1 kB / 0.4935 GB, free: 10.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.318, allocations: 33.7 kB / 0.4935 GB, free: 10.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3182, allocations: 228.5 kB / 0.4937 GB, free: 9.906 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.3183, allocations: 114.2 kB / 0.4939 GB, free: 9.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.3183, allocations: 12 kB / 0.4939 GB, free: 9.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3184, allocations: 358.7 kB / 0.4942 GB, free: 9.422 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.3187, allocations: 112 kB / 0.4943 GB, free: 9.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.319, allocations: 262.7 kB / 0.4946 GB, free: 9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.3193, allocations: 170.3 kB / 0.4947 GB, free: 8.832 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.3193, allocations: 0 / 0.4947 GB, free: 8.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007355/0.3201, allocations: 434.3 kB / 0.4951 GB, free: 8.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.3201, allocations: 29.7 kB / 0.4952 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3201, allocations: 4 kB / 0.4952 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/0.3203, allocations: 49.73 kB / 0.4952 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.3206, allocations: 75.89 kB / 0.4953 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.3229, allocations: 2.764 MB / 0.498 GB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.3233, allocations: 55.66 kB / 0.498 GB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.3234, allocations: 8 kB / 0.4981 GB, free: 5.133 MB / 378.7 MB 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 () * Number of clocked 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 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.3236, allocations: 170.5 kB / 0.4982 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.021e-05/0.3237, allocations: 55.33 kB / 0.4983 GB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.3238, allocations: 52.7 kB / 0.4983 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3238, allocations: 4 kB / 0.4983 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3238, allocations: 0 / 0.4983 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006856/0.3245, allocations: 0.6697 MB / 0.499 GB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.3259, allocations: 0.9197 MB / 0.4999 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3259, allocations: 0 / 0.4999 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.3263, allocations: 75.89 kB / 0.4999 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.3263, allocations: 7.984 kB / 0.5 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.3263, allocations: 7.953 kB / 0.5 GB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3263, allocations: 4 kB / 0.5 GB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3263, allocations: 0 / 0.5 GB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008684/0.3272, allocations: 0.5416 MB / 0.5005 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.3275, allocations: 168.4 kB / 0.5007 GB, free: 2.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.599e-05/0.3275, allocations: 4 kB / 0.5007 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.3278, allocations: 19.95 kB / 0.5007 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.3278, allocations: 19.97 kB / 0.5007 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.3278, allocations: 8 kB / 0.5007 GB, free: 2.199 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003582/0.3282, allocations: 319.1 kB / 0.501 GB, free: 1.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3282, allocations: 0 / 0.501 GB, free: 1.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004293/0.3287, allocations: 147.8 kB / 0.5012 GB, free: 1.75 MB / 378.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 () * Number of clocked 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.0001908/0.3289, allocations: 119.2 kB / 0.5013 GB, free: 1.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009/0.3298, allocations: 0.575 MB / 0.5018 GB, free: 1.008 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3298, allocations: 0 / 0.5018 GB, free: 1.008 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.33, allocations: 140.3 kB / 0.502 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.3306, allocations: 124.6 kB / 0.5021 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1595/0.4901, allocations: 1.073 MB / 0.5031 GB, free: 94.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.4905, allocations: 0.8289 MB / 0.5039 GB, free: 93.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003713/0.4909, allocations: 57.58 kB / 0.504 GB, free: 93.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.4911, allocations: 40.72 kB / 0.504 GB, free: 93.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4911, allocations: 0 / 0.504 GB, free: 93.64 MB / 378.7 MB Notification: Performance of Templates: time 0.01466/0.5058, allocations: 7.291 MB / 0.5112 GB, free: 93.41 MB / 378.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