Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001452/0.001451, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001875/0.001875, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 64.98 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1021, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006342/0.1085, allocations: 5.037 MB / 363.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002837/0.1114, allocations: 1.328 MB / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004102/0.1118, allocations: 11.94 kB / 365.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004616/0.1123, allocations: 166.5 kB / 365.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006153/0.113, allocations: 325.2 kB / 365.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.1135, allocations: 235.6 kB / 366 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.1147, allocations: 1.176 MB / 367.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004448/0.1152, allocations: 314 kB / 367.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006342/0.1158, allocations: 450.4 kB / 367.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000598/0.1165, allocations: 0.5019 MB / 368.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.1166, allocations: 107.9 kB / 368.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.1168, allocations: 108 kB / 368.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001713/0.1169, allocations: 223.2 kB / 368.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.1174, allocations: 0.5211 MB / 369.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1184, allocations: 1.203 MB / 370.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1184, allocations: 0 / 370.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1185, allocations: 0 / 370.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1185, allocations: 0 / 370.6 MB, free: 1.645 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.002502/0.121, allocations: 1.348 MB / 371.9 MB, free: 228 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.121, allocations: 8.031 kB / 371.9 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.1212, allocations: 107.8 kB / 372 MB, free: 112 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1606/0.2818, allocations: 0.5825 MB / 372.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.2821, allocations: 143.1 kB / 372.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2822, allocations: 57.72 kB / 372.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.2837, allocations: 0.8465 MB / 373.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.2837, allocations: 2.938 kB / 373.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.2838, allocations: 25.44 kB / 373.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.2838, allocations: 16.09 kB / 373.7 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.2852, allocations: 0.5982 MB / 374.3 MB, free: 19.41 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.003393/0.2886, allocations: 2.047 MB / 376.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.2898, allocations: 0.8537 MB / 377.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007175/0.2905, allocations: 398.9 kB / 377.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.729e-05/0.2906, allocations: 15.03 kB / 377.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.2906, allocations: 60.23 kB / 377.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.585e-06/0.2906, allocations: 0 / 377.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004919/0.2955, allocations: 1.795 MB / 379.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/0.2957, allocations: 0.8289 MB / 380.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008313/0.2966, allocations: 0.6301 MB / 380.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.28e-05/0.2967, allocations: 41.42 kB / 380.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.2969, allocations: 337.9 kB / 381.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.2971, allocations: 252.2 kB / 381.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.2973, allocations: 143.5 kB / 381.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2974, allocations: 385.6 kB / 382 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005894/0.298, allocations: 274.8 kB / 382.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/0.2988, allocations: 0.5506 MB / 382.9 MB, free: 14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.3, allocations: 0.6817 MB / 383.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3001, allocations: 1.25 kB / 383.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002689/0.3028, allocations: 1.092 MB / 384.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.3028, allocations: 88.75 kB / 384.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3028, allocations: 1.891 kB / 384.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007279/0.3036, allocations: 236.7 kB / 384.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/0.3043, allocations: 137.2 kB / 385.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00666/0.311, allocations: 6.935 MB / 392 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.312, allocations: 99.61 kB / 392.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.443e-05/0.3121, allocations: 22.73 kB / 392.1 MB, free: 6.637 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.0004619/0.3126, allocations: 228.4 kB / 392.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.3128, allocations: 85.09 kB / 392.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.3129, allocations: 86.91 kB / 392.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3129, allocations: 8.562 kB / 392.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.313, allocations: 0 / 392.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002262/0.3152, allocations: 1.243 MB / 393.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003625/0.3189, allocations: 1.922 MB / 395.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3189, allocations: 1.672 kB / 395.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006752/0.3196, allocations: 141.9 kB / 395.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005178/0.3201, allocations: 200.1 kB / 396 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/0.3201, allocations: 11.53 kB / 396 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005448/0.3256, allocations: 5.358 MB / 401.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3256, allocations: 1.375 kB / 401.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.3288, allocations: 1.388 MB / 402.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003862/0.3292, allocations: 244.2 kB / 403 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3293, allocations: 19.22 kB / 403.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006052/0.3299, allocations: 52.02 kB / 403.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.3301, allocations: 71.12 kB / 403.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.372e-05/0.3302, allocations: 16.97 kB / 403.2 MB, free: 14.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006195/0.3308, allocations: 456.4 kB / 403.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3308, allocations: 0 / 403.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001042/0.3319, allocations: 277.8 kB / 403.9 MB, free: 13.88 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.0001926/0.3321, allocations: 123.3 kB / 404 MB, free: 13.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002197/0.3343, allocations: 1.356 MB / 405.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3343, allocations: 0 / 405.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.3356, allocations: 0.7751 MB / 406.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000928/0.3365, allocations: 235 kB / 406.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.3392, allocations: 1.591 MB / 408 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006682/0.3398, allocations: 0.9455 MB / 408.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004098/0.3403, allocations: 102.4 kB / 409 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.3404, allocations: 67.42 kB / 409.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3404, allocations: 0 / 409.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of Templates: time 0.02721/0.3677, allocations: 18.42 MB / 427.5 MB, free: 7.848 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches