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.001109/0.001109, allocations: 108 kB / 17.06 MB, free: 6.02 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.001162/0.001162, allocations: 191 kB / 18 MB, free: 5.102 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 55.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.273, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005697/0.2787, allocations: 5.037 MB / 405.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.2809, allocations: 1.293 MB / 407 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.2812, allocations: 11.94 kB / 407.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004254/0.2816, allocations: 174.5 kB / 407.2 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006017/0.2822, allocations: 325.2 kB / 407.5 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.2827, allocations: 227.6 kB / 407.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.2838, allocations: 1.178 MB / 408.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000413/0.2842, allocations: 310 kB / 409.2 MB, free: 296 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.2847, allocations: 458.4 kB / 409.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005565/0.2852, allocations: 0.5096 MB / 410.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.2854, allocations: 104 kB / 410.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.2856, allocations: 104 kB / 410.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.2858, allocations: 223.2 kB / 410.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004378/0.2862, allocations: 0.521 MB / 411.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.2873, allocations: 1.198 MB / 412.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2873, allocations: 4 kB / 412.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2873, allocations: 0 / 412.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.2873, allocations: 0 / 412.4 MB, free: 13.18 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.002215/0.2895, allocations: 1.375 MB / 413.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2896, allocations: 15.89 kB / 413.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.2898, allocations: 108.3 kB / 413.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009278/0.2907, allocations: 0.5954 MB / 414.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.2909, allocations: 139 kB / 414.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.291, allocations: 68.08 kB / 414.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.2924, allocations: 0.8548 MB / 415.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.2924, allocations: 0 / 415.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.2925, allocations: 24 kB / 415.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.2925, allocations: 12 kB / 415.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.2939, allocations: 0.6062 MB / 416.1 MB, free: 9.152 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.003091/0.297, allocations: 2.054 MB / 418.2 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.2983, allocations: 0.8469 MB / 419 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007764/0.2991, allocations: 394.6 kB / 419.4 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.2992, allocations: 8.656 kB / 419.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.2992, allocations: 51.2 kB / 419.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.204e-06/0.2992, allocations: 4 kB / 419.5 MB, free: 5.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004815/0.3041, allocations: 1.797 MB / 421.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003345/0.3044, allocations: 0.8234 MB / 422.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007396/0.3052, allocations: 0.6332 MB / 422.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.3052, allocations: 45.7 kB / 422.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.3055, allocations: 337.3 kB / 423.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.3057, allocations: 273.7 kB / 423.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/0.3059, allocations: 138.7 kB / 423.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3061, allocations: 394.7 kB / 423.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.3067, allocations: 265.8 kB / 424.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008783/0.3076, allocations: 0.5546 MB / 424.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.309, allocations: 0.6817 MB / 425.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.309, allocations: 0 / 425.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002532/0.3115, allocations: 1.106 MB / 426.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-05/0.3116, allocations: 85.11 kB / 426.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3116, allocations: 0 / 426.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007022/0.3123, allocations: 243.2 kB / 426.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006275/0.3129, allocations: 135.8 kB / 427 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007574/0.3205, allocations: 6.933 MB / 433.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008689/0.3214, allocations: 107.5 kB / 434 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.3215, allocations: 20 kB / 434 MB, free: 6.02 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.0003372/0.3218, allocations: 221.7 kB / 434.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.322, allocations: 91.44 kB / 434.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.3221, allocations: 91.34 kB / 434.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3222, allocations: 8 kB / 434.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3222, allocations: 0 / 434.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002364/0.3245, allocations: 1.237 MB / 435.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003703/0.3283, allocations: 1.928 MB / 437.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3283, allocations: 0 / 437.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006766/0.329, allocations: 139.8 kB / 437.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005409/0.3295, allocations: 194.5 kB / 437.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.3296, allocations: 15.98 kB / 437.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006275/0.3358, allocations: 5.35 MB / 443.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3359, allocations: 0 / 443.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.339, allocations: 1.407 MB / 444.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.3394, allocations: 248.3 kB / 444.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.3395, allocations: 23.94 kB / 445 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.3402, allocations: 47.95 kB / 445 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.3403, allocations: 64.56 kB / 445.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.3404, allocations: 16 kB / 445.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005269/0.3409, allocations: 459 kB / 445.5 MB, free: 9.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3409, allocations: 0 / 445.5 MB, free: 9.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007962/0.3417, allocations: 283.8 kB / 445.8 MB, free: 9.566 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.0001469/0.3419, allocations: 123.7 kB / 445.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.344, allocations: 1.352 MB / 447.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.344, allocations: 4.125 kB / 447.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.3453, allocations: 0.7768 MB / 448.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009231/0.3463, allocations: 234.9 kB / 448.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.3488, allocations: 1.615 MB / 449.9 MB, free: 5.301 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.3493, allocations: 0.944 MB / 450.8 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003834/0.3497, allocations: 98.42 kB / 450.9 MB, free: 4.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.3499, allocations: 63.44 kB / 451 MB, free: 4.168 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3499, allocations: 0 / 451 MB, free: 4.168 MB / 366.1 MB Notification: Performance of Templates: time 0.02691/0.3768, allocations: 18.6 MB / 469.6 MB, free: 1.844 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