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.001076/0.001076, allocations: 104.7 kB / 16.51 MB, free: 6.652 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.001047/0.001047, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000975/0.000975, allocations: 42.84 kB / 299.9 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08997, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006041/0.09605, allocations: 5.05 MB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.09807, allocations: 1.297 MB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.09832, allocations: 8 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003767/0.09874, allocations: 123.1 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005076/0.09926, allocations: 293.7 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.0996, allocations: 199.7 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009127/0.1005, allocations: 1.127 MB / 357.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.1009, allocations: 286.3 kB / 357.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.1013, allocations: 418.4 kB / 358.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004626/0.1018, allocations: 497.9 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.1019, allocations: 72 kB / 358.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.1021, allocations: 80 kB / 358.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1023, allocations: 191.2 kB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004528/0.1027, allocations: 497.6 kB / 359.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009148/0.1036, allocations: 1.164 MB / 360.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1037, allocations: 0 / 360.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1037, allocations: 0 / 360.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1037, allocations: 0 / 360.6 MB, free: 9.547 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.002331/0.106, allocations: 1.341 MB / 362 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1061, allocations: 12.03 kB / 362 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1062, allocations: 103.8 kB / 362.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00086/0.1071, allocations: 0.5871 MB / 362.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003172/0.1074, allocations: 166.9 kB / 362.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.1075, allocations: 60.12 kB / 362.9 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.109, allocations: 0.8626 MB / 363.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.109, allocations: 0 / 363.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.391e-05/0.1091, allocations: 28 kB / 363.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1091, allocations: 16 kB / 363.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.1106, allocations: 0.6219 MB / 364.4 MB, free: 5.523 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.003042/0.1136, allocations: 2.073 MB / 366.5 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.115, allocations: 0.8547 MB / 367.3 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008284/0.1158, allocations: 410.4 kB / 367.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.802e-05/0.1159, allocations: 20.62 kB / 367.8 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.1159, allocations: 47.16 kB / 367.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.385e-06/0.1159, allocations: 3.938 kB / 367.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005047/0.121, allocations: 1.832 MB / 369.6 MB, free: 16 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1411/0.2621, allocations: 0.8171 MB / 370.5 MB, free: 25.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008571/0.263, allocations: 0.6323 MB / 371.1 MB, free: 25.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.2632, allocations: 44.52 kB / 371.1 MB, free: 25.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.2634, allocations: 336.2 kB / 371.5 MB, free: 25.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.2635, allocations: 256 kB / 371.7 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.2638, allocations: 140 kB / 371.9 MB, free: 24.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/0.2639, allocations: 388.9 kB / 372.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007264/0.2646, allocations: 289.7 kB / 372.5 MB, free: 24.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008512/0.2655, allocations: 0.562 MB / 373.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.2668, allocations: 0.706 MB / 373.8 MB, free: 23.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2668, allocations: 1.25 kB / 373.8 MB, free: 23.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002603/0.2694, allocations: 1.124 MB / 374.9 MB, free: 23.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.2695, allocations: 88.06 kB / 375 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2695, allocations: 1.375 kB / 375 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006439/0.2702, allocations: 236.5 kB / 375.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/0.2708, allocations: 147.6 kB / 375.4 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005898/0.2767, allocations: 6.371 MB / 381.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007903/0.2776, allocations: 110.3 kB / 381.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.2776, allocations: 23.03 kB / 381.9 MB, free: 17.29 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.000275/0.2779, allocations: 221.3 kB / 382.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.278, allocations: 85.41 kB / 382.2 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.2782, allocations: 91.22 kB / 382.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.2782, allocations: 7.625 kB / 382.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2782, allocations: 0 / 382.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00235/0.2806, allocations: 1.266 MB / 383.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/0.2842, allocations: 1.952 MB / 385.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2842, allocations: 0 / 385.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.2849, allocations: 147.5 kB / 385.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005094/0.2854, allocations: 201 kB / 385.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.2855, allocations: 17.61 kB / 385.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00505/0.2905, allocations: 4.921 MB / 390.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2906, allocations: 0 / 390.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.2936, allocations: 1.43 MB / 392.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.2939, allocations: 247.6 kB / 392.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.2941, allocations: 22.44 kB / 392.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/0.2947, allocations: 57.38 kB / 392.5 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.2949, allocations: 59.81 kB / 392.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.2949, allocations: 20.41 kB / 392.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.2954, allocations: 456.5 kB / 393 MB, free: 9.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2954, allocations: 4 kB / 393 MB, free: 9.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008034/0.2962, allocations: 277.6 kB / 393.3 MB, free: 9.738 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.0001247/0.2964, allocations: 131.5 kB / 393.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.2983, allocations: 1.368 MB / 394.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.2983, allocations: 2.312 kB / 394.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.2996, allocations: 0.7749 MB / 395.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.3006, allocations: 232.6 kB / 395.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.3028, allocations: 1.894 MB / 397.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.3031, allocations: 0.9414 MB / 398.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004016/0.3035, allocations: 99.84 kB / 398.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.3037, allocations: 62.58 kB / 398.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3037, allocations: 1.125 kB / 398.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of Templates: time 0.02303/0.3267, allocations: 17.02 MB / 415.8 MB, free: 6.973 MB / 318.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