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.001187/0.001187, allocations: 102.5 kB / 17.05 MB, free: 6.125 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.001149/0.001149, allocations: 194.9 kB / 18 MB, free: 5.199 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2392, allocations: 49.42 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005293/0.2445, allocations: 5.046 MB / 405.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2465, allocations: 1.289 MB / 407 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.2468, allocations: 11.94 kB / 407.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003846/0.2472, allocations: 174.5 kB / 407.2 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.2478, allocations: 337.2 kB / 407.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.2482, allocations: 223.6 kB / 407.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.2492, allocations: 1.182 MB / 409 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000393/0.2496, allocations: 317.8 kB / 409.3 MB, free: 280 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004175/0.25, allocations: 454.4 kB / 409.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.2505, allocations: 0.5096 MB / 410.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.2507, allocations: 108 kB / 410.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.2508, allocations: 104 kB / 410.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.251, allocations: 223.2 kB / 410.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004442/0.2514, allocations: 0.5172 MB / 411.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.2524, allocations: 1.196 MB / 412.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2525, allocations: 0 / 412.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2525, allocations: 0 / 412.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.2525, allocations: 0 / 412.4 MB, free: 13.17 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.002288/0.2548, allocations: 1.337 MB / 413.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2548, allocations: 15.83 kB / 413.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.255, allocations: 111.7 kB / 413.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008929/0.2559, allocations: 0.5949 MB / 414.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.2561, allocations: 139 kB / 414.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/0.2562, allocations: 64.03 kB / 414.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.2575, allocations: 0.8509 MB / 415.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.2576, allocations: 0 / 415.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.398e-05/0.2576, allocations: 28 kB / 415.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.2577, allocations: 16 kB / 415.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.259, allocations: 0.6024 MB / 416.1 MB, free: 9.184 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.003034/0.262, allocations: 2.053 MB / 418.2 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.2634, allocations: 0.8391 MB / 419 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007463/0.2641, allocations: 398.6 kB / 419.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.976e-05/0.2642, allocations: 20.62 kB / 419.4 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.2642, allocations: 43.22 kB / 419.5 MB, free: 5.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 3.717e-06/0.2642, allocations: 0 / 419.5 MB, free: 5.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004764/0.269, allocations: 1.8 MB / 421.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003121/0.2693, allocations: 0.8234 MB / 422.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007207/0.2701, allocations: 0.6293 MB / 422.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.2701, allocations: 45.7 kB / 422.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.2704, allocations: 341 kB / 423.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.2706, allocations: 260.2 kB / 423.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.2708, allocations: 142.7 kB / 423.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.271, allocations: 386.8 kB / 423.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/0.2716, allocations: 273.8 kB / 424.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008325/0.2725, allocations: 0.5507 MB / 424.7 MB, free: 16 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.2738, allocations: 0.6894 MB / 425.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2738, allocations: 0 / 425.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002473/0.2763, allocations: 1.087 MB / 426.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.273e-05/0.2763, allocations: 89.09 kB / 426.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2763, allocations: 8 kB / 426.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006647/0.277, allocations: 231.3 kB / 426.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006088/0.2776, allocations: 143.8 kB / 426.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007337/0.285, allocations: 6.921 MB / 433.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008439/0.2859, allocations: 103.3 kB / 433.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.146e-05/0.2859, allocations: 27.98 kB / 434 MB, free: 6.074 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.0004048/0.2863, allocations: 221.7 kB / 434.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.2865, allocations: 86.97 kB / 434.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.2867, allocations: 91.28 kB / 434.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.2867, allocations: 4 kB / 434.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.2867, allocations: 0 / 434.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002485/0.2892, allocations: 1.245 MB / 435.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.2929, allocations: 1.916 MB / 437.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.2929, allocations: 0 / 437.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006795/0.2936, allocations: 143.8 kB / 437.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005291/0.2941, allocations: 198.7 kB / 437.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/0.2942, allocations: 19.98 kB / 437.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006224/0.3004, allocations: 5.333 MB / 443.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3004, allocations: 4.031 kB / 443.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/0.3036, allocations: 1.403 MB / 444.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.3039, allocations: 240.1 kB / 444.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.857e-05/0.304, allocations: 16 kB / 444.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.3046, allocations: 51.94 kB / 444.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3048, allocations: 68.5 kB / 445 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.3048, allocations: 20 kB / 445 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005204/0.3054, allocations: 455 kB / 445.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3054, allocations: 4 kB / 445.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007917/0.3062, allocations: 283.7 kB / 445.7 MB, free: 9.641 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.0001528/0.3063, allocations: 125.2 kB / 445.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.3084, allocations: 1.344 MB / 447.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3084, allocations: 4 kB / 447.2 MB, free: 8.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.3097, allocations: 0.7653 MB / 448 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009275/0.3107, allocations: 247 kB / 448.2 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.3133, allocations: 1.59 MB / 449.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.3139, allocations: 0.9401 MB / 450.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003483/0.3143, allocations: 98.44 kB / 450.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.3144, allocations: 67.42 kB / 450.9 MB, free: 4.277 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3144, allocations: 0 / 450.9 MB, free: 4.277 MB / 366.1 MB Notification: Performance of Templates: time 0.02811/0.3426, allocations: 18.6 MB / 469.5 MB, free: 1.953 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