Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001316/0.001316, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2239, allocations: 50.54 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005638/0.2296, allocations: 5.046 MB / 414.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.2317, allocations: 1.332 MB / 415.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.232, allocations: 8 kB / 415.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.2324, allocations: 162.5 kB / 415.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005367/0.2329, allocations: 329.2 kB / 416.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.2333, allocations: 231.6 kB / 416.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009993/0.2343, allocations: 1.179 MB / 417.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.2347, allocations: 310 kB / 417.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.2352, allocations: 454.4 kB / 418.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005062/0.2357, allocations: 0.5057 MB / 418.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.2358, allocations: 104 kB / 418.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.236, allocations: 104 kB / 419 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.2362, allocations: 231.2 kB / 419.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000416/0.2366, allocations: 0.5172 MB / 419.7 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000985/0.2376, allocations: 1.198 MB / 420.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2376, allocations: 12 kB / 420.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2376, allocations: 0 / 420.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.2376, allocations: 3.938 kB / 420.9 MB, free: 5.852 MB / 334.1 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.002128/0.2398, allocations: 1.367 MB / 422.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2398, allocations: 12.03 kB / 422.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.24, allocations: 112.3 kB / 422.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008631/0.2408, allocations: 0.5916 MB / 423 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.241, allocations: 142.9 kB / 423.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.734e-05/0.2411, allocations: 68.12 kB / 423.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.2424, allocations: 0.8431 MB / 424.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.2425, allocations: 0 / 424.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.627e-05/0.2425, allocations: 24 kB / 424.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.2426, allocations: 12 kB / 424.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.2439, allocations: 0.6023 MB / 424.7 MB, free: 1.848 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002885/0.2468, allocations: 2.054 MB / 426.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.2481, allocations: 0.8531 MB / 427.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007431/0.2488, allocations: 399.5 kB / 428 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.2489, allocations: 16.59 kB / 428 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.2489, allocations: 51.22 kB / 428.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.124e-06/0.2489, allocations: 0 / 428.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00478/0.2537, allocations: 1.797 MB / 429.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003023/0.254, allocations: 0.8195 MB / 430.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/0.2548, allocations: 0.6371 MB / 431.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.2548, allocations: 49.64 kB / 431.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.2551, allocations: 333.4 kB / 431.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.2553, allocations: 269.7 kB / 431.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.2555, allocations: 134.7 kB / 432.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2557, allocations: 394.7 kB / 432.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006263/0.2563, allocations: 269.8 kB / 432.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008569/0.2572, allocations: 0.5546 MB / 433.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.2585, allocations: 0.6817 MB / 434 MB, free: 7.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2585, allocations: 0 / 434 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002469/0.2609, allocations: 1.099 MB / 435.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/0.261, allocations: 89.09 kB / 435.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.261, allocations: 0 / 435.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000653/0.2617, allocations: 243.2 kB / 435.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/0.2623, allocations: 135.8 kB / 435.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007255/0.2695, allocations: 6.936 MB / 442.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008237/0.2704, allocations: 111.4 kB / 442.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.349e-05/0.2704, allocations: 20 kB / 442.6 MB, free: 14.71 MB / 366.1 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003213/0.2708, allocations: 221.7 kB / 442.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.2709, allocations: 87.48 kB / 442.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.2711, allocations: 99.33 kB / 443 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2711, allocations: 8 kB / 443 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2711, allocations: 0 / 443 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002359/0.2735, allocations: 1.237 MB / 444.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003605/0.2771, allocations: 1.924 MB / 446.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2771, allocations: 3.938 kB / 446.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.2778, allocations: 144 kB / 446.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005219/0.2783, allocations: 194.5 kB / 446.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.2784, allocations: 16 kB / 446.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00602/0.2844, allocations: 5.342 MB / 451.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2844, allocations: 12.05 kB / 451.9 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003114/0.2876, allocations: 1.399 MB / 453.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003351/0.2879, allocations: 240.4 kB / 453.5 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.288, allocations: 20 kB / 453.5 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.2886, allocations: 55.94 kB / 453.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.2888, allocations: 60.58 kB / 453.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.2889, allocations: 19.98 kB / 453.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005476/0.2894, allocations: 451.1 kB / 454.1 MB, free: 2.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2894, allocations: 0 / 454.1 MB, free: 2.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008067/0.2902, allocations: 287.7 kB / 454.4 MB, free: 2.258 MB / 366.1 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001956/0.2904, allocations: 124.5 kB / 454.5 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.2925, allocations: 1.352 MB / 455.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2925, allocations: 4 kB / 455.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.2938, allocations: 0.7691 MB / 456.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009212/0.2947, allocations: 238.8 kB / 456.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.2973, allocations: 1.611 MB / 458.4 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.2977, allocations: 0.9478 MB / 459.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003657/0.2981, allocations: 106.4 kB / 459.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.2983, allocations: 63.42 kB / 459.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2983, allocations: 0 / 459.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of Templates: time 0.02686/0.3252, allocations: 18.6 MB / 478.2 MB, free: 10.52 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches