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.001024/0.001024, allocations: 110 kB / 17.68 MB, free: 5.332 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.001007/0.001007, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.321/1.321, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009441/0.0009442, allocations: 50.47 kB / 302 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08823/0.08919, allocations: 49.44 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005349/0.09458, allocations: 5.027 MB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.09666, allocations: 1.289 MB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.09691, allocations: 11.94 kB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.09729, allocations: 166.5 kB / 358 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005168/0.09784, allocations: 321.2 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.09824, allocations: 235.6 kB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009969/0.09925, allocations: 1.182 MB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003873/0.09964, allocations: 318 kB / 360 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.1, allocations: 454.4 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004822/0.1005, allocations: 0.5057 MB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.1006, allocations: 104 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.1008, allocations: 108 kB / 361.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.101, allocations: 215.3 kB / 361.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004177/0.1014, allocations: 0.5288 MB / 361.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008834/0.1023, allocations: 1.199 MB / 363.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1023, allocations: 4 kB / 363.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1023, allocations: 0 / 363.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1023, allocations: 0 / 363.1 MB, free: 8.023 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.002159/0.1045, allocations: 1.337 MB / 364.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1045, allocations: 15.89 kB / 364.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.1047, allocations: 103.8 kB / 364.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008924/0.1056, allocations: 0.5948 MB / 365.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.1058, allocations: 143 kB / 365.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.881e-05/0.1059, allocations: 64.12 kB / 365.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.1072, allocations: 0.8475 MB / 366.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1072, allocations: 0 / 366.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.1073, allocations: 32 kB / 366.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1073, allocations: 12 kB / 366.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1086, allocations: 0.5985 MB / 366.9 MB, free: 4.055 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.003004/0.1116, allocations: 2.053 MB / 368.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.1129, allocations: 0.8469 MB / 369.8 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.1136, allocations: 402.4 kB / 370.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.889e-05/0.1137, allocations: 8.656 kB / 370.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.1137, allocations: 47.22 kB / 370.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 1.943e-06/0.1137, allocations: 0 / 370.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1629/0.2766, allocations: 1.797 MB / 372 MB, free: 25.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002111/0.2769, allocations: 0.8247 MB / 372.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.278, allocations: 0.632 MB / 373.5 MB, free: 23.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.2782, allocations: 43.58 kB / 373.5 MB, free: 23.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.2785, allocations: 336.2 kB / 373.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.2787, allocations: 257.4 kB / 374.1 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.279, allocations: 142.5 kB / 374.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2791, allocations: 393 kB / 374.6 MB, free: 23.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006403/0.2798, allocations: 272.6 kB / 374.9 MB, free: 23.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008529/0.2807, allocations: 0.5499 MB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.2819, allocations: 0.679 MB / 376.1 MB, free: 22.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2819, allocations: 3.062 kB / 376.1 MB, free: 22.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002485/0.2844, allocations: 1.093 MB / 377.2 MB, free: 22.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.119e-05/0.2844, allocations: 89.48 kB / 377.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.2844, allocations: 2.125 kB / 377.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.2851, allocations: 232.6 kB / 377.5 MB, free: 21.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.2857, allocations: 140.1 kB / 377.6 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006118/0.2919, allocations: 6.927 MB / 384.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008292/0.2927, allocations: 99.36 kB / 384.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.528e-05/0.2928, allocations: 27.45 kB / 384.7 MB, free: 15.53 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.000287/0.2931, allocations: 227.7 kB / 384.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.2932, allocations: 89 kB / 385 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.2934, allocations: 87.19 kB / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2934, allocations: 8 kB / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.2934, allocations: 0 / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002169/0.2956, allocations: 1.239 MB / 386.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.2991, allocations: 1.922 MB / 388.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2991, allocations: 0.7969 kB / 388.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006829/0.2998, allocations: 140.9 kB / 388.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/0.3003, allocations: 196.4 kB / 388.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.3003, allocations: 14 kB / 388.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005093/0.3054, allocations: 5.35 MB / 394 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3055, allocations: 0 / 394 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.3084, allocations: 1.39 MB / 395.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003164/0.3087, allocations: 249.5 kB / 395.6 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3088, allocations: 16.5 kB / 395.6 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006137/0.3094, allocations: 55.55 kB / 395.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.3096, allocations: 65.64 kB / 395.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.196e-05/0.3097, allocations: 19.14 kB / 395.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005415/0.3102, allocations: 457 kB / 396.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3102, allocations: 0 / 396.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008502/0.3111, allocations: 281.6 kB / 396.5 MB, free: 7.59 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.0001304/0.3112, allocations: 125.4 kB / 396.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.3131, allocations: 1.352 MB / 397.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3131, allocations: 0 / 397.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.3142, allocations: 0.7688 MB / 398.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008411/0.3151, allocations: 240.9 kB / 398.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.3174, allocations: 1.589 MB / 400.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3177, allocations: 0.9395 MB / 401.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003698/0.3181, allocations: 108.1 kB / 401.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.3182, allocations: 65.06 kB / 401.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3183, allocations: 0 / 401.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of Templates: time 0.02567/0.3439, allocations: 18.43 MB / 420.1 MB, free: 3.32 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 -s cvode -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