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.001295/0.001295, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.88 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2372, allocations: 50.53 MB / 409.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005723/0.243, allocations: 5.043 MB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.2455, allocations: 1.336 MB / 416.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.246, allocations: 11.94 kB / 416.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004195/0.2464, allocations: 158.6 kB / 416.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006295/0.2471, allocations: 329.2 kB / 416.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.2475, allocations: 235.5 kB / 417 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.2487, allocations: 1.171 MB / 418.2 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.2491, allocations: 315.3 kB / 418.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004951/0.2496, allocations: 454.5 kB / 418.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005425/0.2502, allocations: 0.5057 MB / 419.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.2503, allocations: 104 kB / 419.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.2506, allocations: 108 kB / 419.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.2508, allocations: 227.2 kB / 419.9 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006434/0.2515, allocations: 0.5172 MB / 420.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009652/0.2524, allocations: 1.203 MB / 421.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2525, allocations: 0 / 421.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2525, allocations: 0 / 421.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.2525, allocations: 0 / 421.6 MB, free: 5.965 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.002294/0.2548, allocations: 1.341 MB / 422.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2548, allocations: 12.02 kB / 422.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.255, allocations: 111.7 kB / 423.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.2561, allocations: 0.5832 MB / 423.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.2563, allocations: 139 kB / 423.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/0.2564, allocations: 64.12 kB / 423.8 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.2577, allocations: 0.847 MB / 424.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.2578, allocations: 0 / 424.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.15e-05/0.2578, allocations: 24 kB / 424.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.2579, allocations: 15.98 kB / 424.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.2592, allocations: 0.5985 MB / 425.3 MB, free: 2 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.00313/0.2623, allocations: 2.057 MB / 427.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.2637, allocations: 0.8531 MB / 428.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007754/0.2645, allocations: 402.4 kB / 428.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.2646, allocations: 12.64 kB / 428.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.2646, allocations: 51.16 kB / 428.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.906e-06/0.2646, allocations: 0 / 428.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004999/0.2696, allocations: 1.796 MB / 430.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003732/0.27, allocations: 0.8234 MB / 431.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007597/0.2708, allocations: 0.6333 MB / 431.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.512e-05/0.2709, allocations: 45.7 kB / 432 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.2711, allocations: 337 kB / 432.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.2713, allocations: 256.2 kB / 432.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.2715, allocations: 138.7 kB / 432.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2717, allocations: 390.7 kB / 433.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.2723, allocations: 269.8 kB / 433.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008525/0.2732, allocations: 0.5507 MB / 433.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.2745, allocations: 0.6933 MB / 434.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2745, allocations: 0 / 434.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00261/0.2772, allocations: 1.09 MB / 435.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.264e-05/0.2772, allocations: 93.09 kB / 435.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2773, allocations: 0 / 435.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007383/0.278, allocations: 231.3 kB / 436 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006238/0.2786, allocations: 143.8 kB / 436.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/0.2865, allocations: 6.932 MB / 443.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009625/0.2875, allocations: 103.3 kB / 443.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/0.2875, allocations: 27.98 kB / 443.2 MB, free: 14.88 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.0003474/0.2879, allocations: 214.8 kB / 443.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.2881, allocations: 91.06 kB / 443.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.2882, allocations: 91.28 kB / 443.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.2882, allocations: 8 kB / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2882, allocations: 192 / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002415/0.2907, allocations: 1.245 MB / 444.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.2943, allocations: 1.92 MB / 446.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.2943, allocations: 0 / 446.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006624/0.295, allocations: 139.8 kB / 446.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005233/0.2955, allocations: 206.4 kB / 447.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.2956, allocations: 12 kB / 447.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006465/0.302, allocations: 5.346 MB / 452.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3021, allocations: 0 / 452.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.3054, allocations: 1.395 MB / 453.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004978/0.3059, allocations: 239.9 kB / 454.1 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.3061, allocations: 20 kB / 454.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007285/0.3069, allocations: 51.95 kB / 454.1 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.3071, allocations: 60.56 kB / 454.2 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.3071, allocations: 19.98 kB / 454.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006072/0.3078, allocations: 455.1 kB / 454.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3078, allocations: 0 / 454.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009355/0.3087, allocations: 275.8 kB / 454.9 MB, free: 2.457 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.0001832/0.3089, allocations: 131.1 kB / 455.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3113, allocations: 1.352 MB / 456.4 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.3113, allocations: 0 / 456.4 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.3127, allocations: 0.7653 MB / 457.2 MB, free: 76 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3138, allocations: 242.7 kB / 457.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.3168, allocations: 1.63 MB / 459.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.3174, allocations: 0.9439 MB / 460 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.3177, allocations: 75.42 kB / 460.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3177, allocations: 0 / 460.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of Templates: time 0.0272/0.3449, allocations: 22.59 MB / 482.7 MB, free: 6.602 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches