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.001472/0.001472, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00165/0.001651, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.356/1.356, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 47.11 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09707, allocations: 49.44 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006003/0.1031, allocations: 5.028 MB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.1056, allocations: 1.293 MB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004384/0.106, allocations: 11.94 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004777/0.1066, allocations: 154.6 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007247/0.1073, allocations: 325.2 kB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.1078, allocations: 231.6 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.109, allocations: 1.191 MB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004335/0.1095, allocations: 314.2 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005087/0.11, allocations: 446.5 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005754/0.1106, allocations: 0.5096 MB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.1108, allocations: 104 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.1109, allocations: 108 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.1111, allocations: 223.2 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004974/0.1116, allocations: 0.5249 MB / 361.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.1127, allocations: 1.184 MB / 362.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.1127, allocations: 4 kB / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1127, allocations: 0 / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.1128, allocations: 0 / 362.3 MB, free: 8.762 MB / 302.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.002404/0.1152, allocations: 1.345 MB / 363.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1152, allocations: 11.89 kB / 363.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.1154, allocations: 107.8 kB / 363.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009003/0.1163, allocations: 0.5793 MB / 364.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003213/0.1167, allocations: 170.9 kB / 364.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.1168, allocations: 56.12 kB / 364.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.1182, allocations: 0.867 MB / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1183, allocations: 0 / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.506e-05/0.1183, allocations: 28 kB / 365.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1184, allocations: 12 kB / 365.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.1199, allocations: 0.6336 MB / 366.1 MB, free: 4.73 MB / 302.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.00344/0.1233, allocations: 2.065 MB / 368.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.1248, allocations: 0.8508 MB / 369 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008822/0.1257, allocations: 414.4 kB / 369.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-05/0.1258, allocations: 24.62 kB / 369.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.1258, allocations: 43.22 kB / 369.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 3.637e-06/0.1259, allocations: 7.938 kB / 369.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1647/0.2905, allocations: 1.822 MB / 371.3 MB, free: 25.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.2907, allocations: 0.8251 MB / 372.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008558/0.2916, allocations: 0.6283 MB / 372.8 MB, free: 24.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.872e-05/0.2917, allocations: 47.2 kB / 372.8 MB, free: 24.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.292, allocations: 333.9 kB / 373.2 MB, free: 24.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.2922, allocations: 261.1 kB / 373.4 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.2924, allocations: 140.5 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2925, allocations: 390 kB / 373.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007654/0.2933, allocations: 285 kB / 374.2 MB, free: 23.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.2943, allocations: 0.5615 MB / 374.8 MB, free: 23.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.2958, allocations: 0.7079 MB / 375.5 MB, free: 22.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2958, allocations: 0 / 375.5 MB, free: 22.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00292/0.2988, allocations: 1.121 MB / 376.6 MB, free: 22.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/0.2988, allocations: 88.95 kB / 376.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.2989, allocations: 2.359 kB / 376.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/0.2996, allocations: 235.6 kB / 376.9 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006971/0.3003, allocations: 149.8 kB / 377.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007699/0.308, allocations: 6.925 MB / 384 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.3095, allocations: 113.9 kB / 384.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.3096, allocations: 25.12 kB / 384.1 MB, free: 15.75 MB / 302.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.0005407/0.3102, allocations: 220.6 kB / 384.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/0.3105, allocations: 87.23 kB / 384.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002499/0.3108, allocations: 92.02 kB / 384.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3108, allocations: 8.438 kB / 384.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.3108, allocations: 2.531 kB / 384.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003724/0.3146, allocations: 1.265 MB / 385.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005881/0.3205, allocations: 1.956 MB / 387.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.3205, allocations: 0 / 387.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.3216, allocations: 143.5 kB / 387.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008076/0.3224, allocations: 206.9 kB / 388.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.88e-05/0.3225, allocations: 18.19 kB / 388.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008166/0.3307, allocations: 5.343 MB / 393.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3307, allocations: 2.359 kB / 393.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005221/0.336, allocations: 1.431 MB / 394.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005936/0.3366, allocations: 241.1 kB / 395.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.3369, allocations: 19.09 kB / 395.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.3381, allocations: 62.38 kB / 395.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.3383, allocations: 60.48 kB / 395.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.528e-05/0.3384, allocations: 21.41 kB / 395.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000868/0.3393, allocations: 452.4 kB / 395.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3393, allocations: 0 / 395.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001518/0.3408, allocations: 282 kB / 396 MB, free: 7.809 MB / 302.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.000231/0.3411, allocations: 135.5 kB / 396.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003635/0.3447, allocations: 1.392 MB / 397.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.3448, allocations: 6.25 kB / 397.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.3464, allocations: 0.7865 MB / 398.3 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.3477, allocations: 236.9 kB / 398.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.3509, allocations: 1.639 MB / 400.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.3513, allocations: 0.943 MB / 401.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.3516, allocations: 72.98 kB / 401.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3516, allocations: 0 / 401.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of Templates: time 0.02608/0.3777, allocations: 22.53 MB / 423.7 MB, free: 15.31 MB / 334.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/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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches