Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 113.9 kB / 17.07 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001102, allocations: 190.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000968/0.000968, allocations: 43.94 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2539, allocations: 49.43 MB / 400.7 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005348/0.2593, allocations: 5.04 MB / 405.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.2612, allocations: 1.297 MB / 407.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.2615, allocations: 11.94 kB / 407.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.2618, allocations: 166.6 kB / 407.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005524/0.2624, allocations: 337.2 kB / 407.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.2628, allocations: 227.6 kB / 407.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.2638, allocations: 1.183 MB / 409 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004057/0.2642, allocations: 315.3 kB / 409.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004646/0.2647, allocations: 450.5 kB / 409.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005088/0.2652, allocations: 0.5096 MB / 410.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.2654, allocations: 104 kB / 410.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.2655, allocations: 104 kB / 410.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.2657, allocations: 227.2 kB / 410.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000457/0.2662, allocations: 0.521 MB / 411.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.2672, allocations: 1.195 MB / 412.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2672, allocations: 0 / 412.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2673, allocations: 0 / 412.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.2673, allocations: 0 / 412.4 MB, free: 13.32 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.002273/0.2696, allocations: 1.341 MB / 413.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.2696, allocations: 11.89 kB / 413.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.2698, allocations: 111.7 kB / 413.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009419/0.2707, allocations: 0.5872 MB / 414.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.271, allocations: 143 kB / 414.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.2711, allocations: 67.97 kB / 414.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.2725, allocations: 0.847 MB / 415.5 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.2725, allocations: 4 kB / 415.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.105e-05/0.2726, allocations: 28 kB / 415.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.2726, allocations: 19.94 kB / 415.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.274, allocations: 0.5985 MB / 416.1 MB, free: 9.332 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.003404/0.2774, allocations: 2.049 MB / 418.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.2789, allocations: 0.8468 MB / 419 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008073/0.2797, allocations: 398.6 kB / 419.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-05/0.2797, allocations: 20.62 kB / 419.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.2798, allocations: 43.22 kB / 419.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.675e-06/0.2798, allocations: 0 / 419.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005201/0.285, allocations: 1.797 MB / 421.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003586/0.2854, allocations: 0.8234 MB / 422.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007765/0.2862, allocations: 0.6293 MB / 422.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.73e-05/0.2862, allocations: 45.7 kB / 422.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.2865, allocations: 341 kB / 423.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.2867, allocations: 256.2 kB / 423.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.2869, allocations: 142.7 kB / 423.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2871, allocations: 382.8 kB / 423.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/0.2878, allocations: 277.8 kB / 424.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009253/0.2887, allocations: 0.5546 MB / 424.7 MB, free: 168 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.2901, allocations: 0.6818 MB / 425.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2901, allocations: 4 kB / 425.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002664/0.2928, allocations: 1.087 MB / 426.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.2928, allocations: 93.03 kB / 426.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2928, allocations: 0 / 426.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006873/0.2935, allocations: 235.3 kB / 426.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006393/0.2942, allocations: 143.8 kB / 426.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00758/0.3018, allocations: 6.925 MB / 433.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008692/0.3027, allocations: 103.3 kB / 433.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.3027, allocations: 27.98 kB / 434 MB, free: 6.223 MB / 350.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.0003748/0.3031, allocations: 221.7 kB / 434.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.3033, allocations: 86.97 kB / 434.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.3035, allocations: 87.28 kB / 434.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3035, allocations: 8 kB / 434.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.3035, allocations: 0 / 434.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002444/0.306, allocations: 1.252 MB / 435.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003685/0.3097, allocations: 1.912 MB / 437.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3097, allocations: 0 / 437.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006908/0.3104, allocations: 135.8 kB / 437.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005327/0.3109, allocations: 202.5 kB / 437.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.311, allocations: 15.94 kB / 437.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006268/0.3172, allocations: 5.345 MB / 443.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3173, allocations: 4.031 kB / 443.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003243/0.3205, allocations: 1.395 MB / 444.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.3209, allocations: 239.9 kB / 444.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.321, allocations: 24 kB / 444.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006607/0.3217, allocations: 47.89 kB / 444.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.3218, allocations: 64.56 kB / 445 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3219, allocations: 20 kB / 445 MB, free: 10.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005325/0.3224, allocations: 455 kB / 445.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3224, allocations: 0 / 445.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008805/0.3233, allocations: 275.8 kB / 445.7 MB, free: 9.801 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.0001677/0.3235, allocations: 139.2 kB / 445.8 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.3256, allocations: 1.348 MB / 447.2 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3256, allocations: 4 kB / 447.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.327, allocations: 0.7653 MB / 448 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009828/0.328, allocations: 242.9 kB / 448.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.3306, allocations: 1.593 MB / 449.8 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.3311, allocations: 0.9362 MB / 450.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003767/0.3315, allocations: 102.4 kB / 450.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.3317, allocations: 67.42 kB / 450.9 MB, free: 4.422 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3317, allocations: 0 / 450.9 MB, free: 4.422 MB / 366.1 MB Notification: Performance of Templates: time 0.02677/0.3584, allocations: 18.59 MB / 469.5 MB, free: 2.098 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches