Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 204.1 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.706/2.706, allocations: 226.5 MB / 245.4 MB, free: 8.152 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 98.06 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003793, allocations: 4 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5048/0.5052, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2349/0.7402, allocations: 82.4 MB / 491.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005053/0.7408, allocations: 75.97 kB / 491.1 MB, free: 9.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06754/0.8084, allocations: 16.22 MB / 0.4955 GB, free: 8.777 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.378e-06/0.8085, allocations: 0 / 0.4955 GB, free: 8.777 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.15e-05/0.8086, allocations: 19.98 kB / 0.4955 GB, free: 8.758 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.003747/0.8124, allocations: 1.189 MB / 0.4966 GB, free: 7.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.174e-05/0.8125, allocations: 12.03 kB / 0.4967 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003487/0.8128, allocations: 107.8 kB / 0.4968 GB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.8143, allocations: 0.552 MB / 0.4973 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00033/0.8146, allocations: 155 kB / 0.4974 GB, free: 6.617 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.8148, allocations: 56.75 kB / 0.4975 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002603/0.8174, allocations: 0.8719 MB / 0.4983 GB, free: 5.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.8174, allocations: 0 / 0.4983 GB, free: 5.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.8176, allocations: 28 kB / 0.4984 GB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.8176, allocations: 16 kB / 0.4984 GB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/0.82, allocations: 0.6454 MB / 0.499 GB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006046/0.8261, allocations: 2.084 MB / 0.5011 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003037/0.8292, allocations: 1.084 MB / 0.5021 GB, free: 1.562 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.8307, allocations: 414.6 kB / 0.5025 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.8308, allocations: 12.64 kB / 0.5025 GB, free: 1.141 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.523e-05/0.8309, allocations: 47.22 kB / 0.5026 GB, free: 1.086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 6.382e-06/0.831, allocations: 0 / 0.5026 GB, free: 1.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.3968/1.228, allocations: 2 MB / 0.5045 GB, free: 90.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003967/1.228, allocations: 0.8219 MB / 0.5053 GB, free: 89.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/1.23, allocations: 0.6288 MB / 0.5059 GB, free: 89.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002141/1.23, allocations: 45.48 kB / 0.506 GB, free: 89.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/1.231, allocations: 336.2 kB / 0.5063 GB, free: 89.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/1.231, allocations: 259 kB / 0.5065 GB, free: 89.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-05/1.231, allocations: 16.66 kB / 0.5066 GB, free: 89.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003169/1.232, allocations: 388.2 kB / 0.5069 GB, free: 89.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/1.233, allocations: 295.1 kB / 0.5072 GB, free: 89.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/1.234, allocations: 0.5682 MB / 0.5078 GB, free: 88.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002344/1.237, allocations: 0.7343 MB / 0.5085 GB, free: 88.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/1.237, allocations: 2.094 kB / 0.5085 GB, free: 88.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00499/1.242, allocations: 1.186 MB / 0.5096 GB, free: 88.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.976e-05/1.242, allocations: 85.81 kB / 0.5097 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/1.242, allocations: 1 kB / 0.5097 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/1.243, allocations: 254.4 kB / 0.51 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/1.244, allocations: 150.6 kB / 0.5101 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/1.254, allocations: 6.486 MB / 0.5165 GB, free: 83.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/1.255, allocations: 114.5 kB / 0.5166 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/1.256, allocations: 27.83 kB / 0.5166 GB, free: 83.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000606/1.256, allocations: 213.9 kB / 0.5168 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/1.256, allocations: 96.25 kB / 0.5169 GB, free: 83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/1.257, allocations: 94.88 kB / 0.517 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/1.257, allocations: 7.875 kB / 0.517 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/1.257, allocations: 0 / 0.517 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003513/1.26, allocations: 1.325 MB / 0.5183 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006151/1.267, allocations: 2.018 MB / 0.5202 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/1.267, allocations: 8.281 kB / 0.5203 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.268, allocations: 146.8 kB / 0.5204 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008091/1.268, allocations: 223.1 kB / 0.5206 GB, free: 81.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.798e-05/1.269, allocations: 11.91 kB / 0.5206 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00811/1.277, allocations: 5.063 MB / 0.5256 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/1.277, allocations: 0 / 0.5256 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005054/1.282, allocations: 1.516 MB / 0.527 GB, free: 76.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/1.283, allocations: 246.1 kB / 0.5273 GB, free: 76.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/1.283, allocations: 17.53 kB / 0.5273 GB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008041/1.284, allocations: 56.55 kB / 0.5273 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002962/1.284, allocations: 63.5 kB / 0.5274 GB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.587e-05/1.284, allocations: 22.33 kB / 0.5274 GB, free: 76.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008252/1.285, allocations: 451.7 kB / 0.5279 GB, free: 75.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.285, allocations: 0 / 0.5279 GB, free: 75.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001424/1.286, allocations: 291.3 kB / 0.5281 GB, free: 75.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/1.287, allocations: 135.4 kB / 0.5283 GB, free: 75.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003662/1.29, allocations: 1.393 MB / 0.5296 GB, free: 74.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.29, allocations: 3.375 kB / 0.5296 GB, free: 74.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/1.292, allocations: 0.8063 MB / 0.5304 GB, free: 74.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/1.294, allocations: 223.6 kB / 0.5306 GB, free: 74.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004307/1.299, allocations: 1.951 MB / 0.5325 GB, free: 73.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/1.299, allocations: 0.941 MB / 0.5335 GB, free: 72.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/1.3, allocations: 75.28 kB / 0.5335 GB, free: 72.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/1.3, allocations: 0 / 0.5335 GB, free: 72.14 MB / 378.7 MB Notification: Performance of Templates: time 0.03789/1.338, allocations: 22.3 MB / 0.5553 GB, free: 51.73 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches