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.001062/0.001062, allocations: 108.4 kB / 18.36 MB, free: 4.633 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.0009888/0.0009888, allocations: 191 kB / 19.29 MB, free: 3.707 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.331/1.331, 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.001358/0.001358, allocations: 43.94 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08374, allocations: 46.63 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006374/0.09015, allocations: 5.033 MB / 333.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.09277, allocations: 1.333 MB / 335.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005119/0.09331, allocations: 8 kB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005207/0.09388, allocations: 166.6 kB / 335.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008608/0.09476, allocations: 325.1 kB / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.0953, allocations: 227.6 kB / 335.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.0967, allocations: 1.18 MB / 337 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/0.09713, allocations: 322 kB / 337.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.09761, allocations: 454.4 kB / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005271/0.09814, allocations: 0.5057 MB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.09828, allocations: 104 kB / 338.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.09844, allocations: 108 kB / 338.4 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.09862, allocations: 227.2 kB / 338.7 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004439/0.09907, allocations: 0.5211 MB / 339.2 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009553/0.1, allocations: 1.187 MB / 340.4 MB, free: 8.051 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1, allocations: 0 / 340.4 MB, free: 8.051 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1001, allocations: 4 kB / 340.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1001, allocations: 0 / 340.4 MB, free: 8.047 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.002315/0.1024, allocations: 1.348 MB / 341.7 MB, free: 6.625 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.1024, allocations: 15.83 kB / 341.7 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.1026, allocations: 107.8 kB / 341.9 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000924/0.1035, allocations: 0.591 MB / 342.4 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.1037, allocations: 139 kB / 342.6 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.516e-05/0.1038, allocations: 60.12 kB / 342.6 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.1051, allocations: 0.8431 MB / 343.5 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1052, allocations: 4 kB / 343.5 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.567e-05/0.1052, allocations: 31.98 kB / 343.5 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1053, allocations: 12 kB / 343.5 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1066, allocations: 0.5985 MB / 344.1 MB, free: 4.074 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.002996/0.1096, allocations: 2.057 MB / 346.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.1109, allocations: 0.8389 MB / 347 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007517/0.1117, allocations: 394.6 kB / 347.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.615e-05/0.1117, allocations: 16.64 kB / 347.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1118, allocations: 55.14 kB / 347.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 1.914e-06/0.1118, allocations: 0 / 347.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.004836/0.1166, allocations: 1.797 MB / 349.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003018/0.117, allocations: 0.8234 MB / 350.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/0.1177, allocations: 0.6293 MB / 350.7 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.1177, allocations: 45.7 kB / 350.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.118, allocations: 329 kB / 351.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.1182, allocations: 264.2 kB / 351.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.1184, allocations: 150.7 kB / 351.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1186, allocations: 382.8 kB / 351.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006438/0.1192, allocations: 269.8 kB / 352.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008613/0.1201, allocations: 0.5546 MB / 352.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.1214, allocations: 0.6816 MB / 353.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1214, allocations: 3.938 kB / 353.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002525/0.1239, allocations: 1.098 MB / 354.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.417e-05/0.124, allocations: 85.11 kB / 354.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.124, allocations: 4 kB / 354.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/0.1247, allocations: 239.2 kB / 354.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006293/0.1253, allocations: 135.8 kB / 354.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00778/0.1331, allocations: 6.925 MB / 361.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009178/0.1341, allocations: 103.5 kB / 362 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.1341, allocations: 24 kB / 362 MB, free: 0.9531 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.0003666/0.1345, allocations: 221.7 kB / 362.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.1347, allocations: 87.05 kB / 362.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.1348, allocations: 91.34 kB / 362.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1348, allocations: 8 kB / 362.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1349, allocations: 0 / 362.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002443/0.1373, allocations: 1.233 MB / 363.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003604/0.1409, allocations: 1.919 MB / 365.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1409, allocations: 4 kB / 365.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006961/0.1417, allocations: 143.8 kB / 365.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000521/0.1422, allocations: 194.5 kB / 365.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.727e-05/0.1422, allocations: 15.98 kB / 365.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006159/0.1484, allocations: 5.338 MB / 371.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1484, allocations: 3.984 kB / 371.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.1517, allocations: 1.399 MB / 372.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/0.1522, allocations: 243.9 kB / 372.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.1523, allocations: 19.98 kB / 372.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.1529, allocations: 51.95 kB / 372.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.1531, allocations: 72.44 kB / 373 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.1532, allocations: 16 kB / 373 MB, free: 5.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005613/0.1537, allocations: 459 kB / 373.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1537, allocations: 4 kB / 373.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000824/0.1546, allocations: 279.7 kB / 373.7 MB, free: 4.523 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.0001514/0.1547, allocations: 123.2 kB / 373.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.1568, allocations: 1.344 MB / 375.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.1569, allocations: 4 kB / 375.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.1581, allocations: 0.7768 MB / 376 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009214/0.1591, allocations: 238.7 kB / 376.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.1616, allocations: 1.596 MB / 377.8 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1271/0.2888, allocations: 0.9338 MB / 378.7 MB, free: 52.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005727/0.2894, allocations: 98.73 kB / 378.8 MB, free: 52.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.2896, allocations: 71.7 kB / 378.9 MB, free: 52.25 MB / 318.1 MB Notification: Performance of SimCode: time 1.263e-06/0.2896, allocations: 0 / 378.9 MB, free: 52.25 MB / 318.1 MB Notification: Performance of Templates: time 0.02586/0.3155, allocations: 18.41 MB / 397.3 MB, free: 44.91 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 cvode -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