Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001165/0.001165, allocations: 108.4 kB / 18.36 MB, free: 4.762 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.00124/0.00124, allocations: 191 kB / 19.29 MB, free: 3.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 47.92 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08663, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005759/0.09243, allocations: 5.028 MB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.09463, allocations: 1.329 MB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.0949, allocations: 11.94 kB / 335.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.0953, allocations: 158.6 kB / 335.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005287/0.09584, allocations: 321.2 kB / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.09624, allocations: 227.6 kB / 335.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009763/0.09722, allocations: 1.191 MB / 337 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.09761, allocations: 318 kB / 337.3 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.098, allocations: 446.5 kB / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004843/0.09849, allocations: 0.5096 MB / 338.2 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.09863, allocations: 104 kB / 338.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.09878, allocations: 108 kB / 338.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.09895, allocations: 231.2 kB / 338.7 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000423/0.09938, allocations: 0.5172 MB / 339.2 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009427/0.1003, allocations: 1.191 MB / 340.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1003, allocations: 3.984 kB / 340.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.1003, allocations: 0 / 340.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1004, allocations: 3.938 kB / 340.4 MB, free: 8.035 MB / 286.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.002258/0.1026, allocations: 1.348 MB / 341.7 MB, free: 6.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1027, allocations: 11.89 kB / 341.7 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.1028, allocations: 107.8 kB / 341.8 MB, free: 6.496 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008884/0.1037, allocations: 0.5871 MB / 342.4 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.1039, allocations: 143 kB / 342.6 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.782e-05/0.104, allocations: 56.12 kB / 342.6 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.1053, allocations: 0.8509 MB / 343.5 MB, free: 4.707 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.1053, allocations: 3.984 kB / 343.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.245e-05/0.1054, allocations: 31.94 kB / 343.5 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1054, allocations: 16 kB / 343.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.1067, allocations: 0.5985 MB / 344.1 MB, free: 4.059 MB / 286.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.00305/0.1098, allocations: 2.046 MB / 346.2 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.111, allocations: 0.8506 MB / 347 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.1118, allocations: 390.7 kB / 347.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-05/0.1119, allocations: 20.62 kB / 347.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1119, allocations: 47.22 kB / 347.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.134e-06/0.1119, allocations: 0 / 347.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.004778/0.1167, allocations: 1.8 MB / 349.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003167/0.117, allocations: 0.8234 MB / 350.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007168/0.1177, allocations: 0.6332 MB / 350.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.665e-05/0.1178, allocations: 49.64 kB / 350.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.1181, allocations: 333 kB / 351.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.1183, allocations: 260.2 kB / 351.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.1185, allocations: 142.7 kB / 351.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1187, allocations: 386.8 kB / 351.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/0.1193, allocations: 273.8 kB / 352.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00084/0.1202, allocations: 0.5507 MB / 352.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.1214, allocations: 0.6817 MB / 353.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1214, allocations: 0 / 353.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002434/0.1239, allocations: 1.098 MB / 354.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.1239, allocations: 89.09 kB / 354.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.124, allocations: 4 kB / 354.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.1246, allocations: 231.3 kB / 354.8 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006355/0.1253, allocations: 139.8 kB / 354.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/0.1326, allocations: 6.924 MB / 361.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008682/0.1335, allocations: 103.3 kB / 362 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.1336, allocations: 27.92 kB / 362 MB, free: 0.9375 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.0003287/0.1339, allocations: 217.8 kB / 362.2 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.1341, allocations: 83.06 kB / 362.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.1342, allocations: 91.34 kB / 362.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1342, allocations: 8 kB / 362.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1343, allocations: 0 / 362.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002343/0.1366, allocations: 1.241 MB / 363.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/0.1401, allocations: 1.92 MB / 365.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1402, allocations: 0 / 365.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006936/0.1409, allocations: 147.8 kB / 365.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005249/0.1414, allocations: 202.3 kB / 365.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.594e-05/0.1415, allocations: 16 kB / 365.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006116/0.1476, allocations: 5.33 MB / 371.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1476, allocations: 0 / 371.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.1507, allocations: 1.403 MB / 372.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.1512, allocations: 239.9 kB / 372.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.1514, allocations: 20 kB / 372.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/0.1521, allocations: 51.95 kB / 372.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.1523, allocations: 64.56 kB / 373 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.1523, allocations: 16 kB / 373 MB, free: 5.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005812/0.1529, allocations: 459 kB / 373.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1529, allocations: 4 kB / 373.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009316/0.1539, allocations: 279.7 kB / 373.7 MB, free: 4.52 MB / 318.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.0001664/0.154, allocations: 127.1 kB / 373.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002234/0.1563, allocations: 1.348 MB / 375.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.1563, allocations: 4 kB / 375.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.1576, allocations: 0.7731 MB / 376 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009986/0.1586, allocations: 242 kB / 376.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.1615, allocations: 1.595 MB / 377.8 MB, free: 280 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1296/0.2911, allocations: 0.9384 MB / 378.7 MB, free: 52.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006428/0.2918, allocations: 101.6 kB / 378.8 MB, free: 52.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.292, allocations: 70.47 kB / 378.9 MB, free: 52.3 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2921, allocations: 0 / 378.9 MB, free: 52.3 MB / 318.1 MB Notification: Performance of Templates: time 0.02975/0.3218, allocations: 18.41 MB / 397.3 MB, free: 44.89 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches