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.001479/0.001479, allocations: 109 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001892/0.001892, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 64.48 kB / 306.3 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09415, allocations: 50.54 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005583/0.09975, allocations: 5.055 MB / 361.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1018, allocations: 1.336 MB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002584/0.1021, allocations: 11.94 kB / 363.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003247/0.1025, allocations: 131.1 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005019/0.103, allocations: 289.7 kB / 363.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.1033, allocations: 199.8 kB / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009399/0.1043, allocations: 1.109 MB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.1046, allocations: 290.3 kB / 365.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004296/0.1051, allocations: 422.3 kB / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00048/0.1056, allocations: 485.9 kB / 366.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.1057, allocations: 72 kB / 366.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.1058, allocations: 76 kB / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.106, allocations: 195.2 kB / 366.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004413/0.1065, allocations: 0.4899 MB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009558/0.1074, allocations: 1.156 MB / 368.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1074, allocations: 0 / 368.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.1075, allocations: 0 / 368.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.1075, allocations: 0 / 368.1 MB, free: 3.188 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.002431/0.1099, allocations: 1.348 MB / 369.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.11, allocations: 8.031 kB / 369.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.1102, allocations: 107.8 kB / 369.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1113, allocations: 0.5832 MB / 370.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004213/0.1117, allocations: 162.9 kB / 370.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.1119, allocations: 68.11 kB / 370.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1531/0.2649, allocations: 0.8562 MB / 371.2 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.265, allocations: 0.6562 kB / 371.2 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.204e-05/0.2651, allocations: 28.48 kB / 371.2 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.2651, allocations: 13.34 kB / 371.2 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.2668, allocations: 0.6241 MB / 371.9 MB, free: 19.94 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.003141/0.2699, allocations: 2.066 MB / 373.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.2713, allocations: 0.8628 MB / 374.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000785/0.2721, allocations: 404.9 kB / 375.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.2721, allocations: 16.03 kB / 375.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.2722, allocations: 46.09 kB / 375.2 MB, free: 18.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.064e-06/0.2722, allocations: 2.844 kB / 375.2 MB, free: 18.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004962/0.2771, allocations: 1.827 MB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.2773, allocations: 0.8268 MB / 377.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007156/0.278, allocations: 0.6416 MB / 378.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.2781, allocations: 44.83 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.2783, allocations: 328.3 kB / 378.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.2784, allocations: 253.9 kB / 379.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.2786, allocations: 143.4 kB / 379.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.991e-05/0.2788, allocations: 393.3 kB / 379.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000707/0.2795, allocations: 287.2 kB / 380 MB, free: 15.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008749/0.2803, allocations: 0.5721 MB / 380.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.2817, allocations: 0.7039 MB / 381.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2817, allocations: 1.344 kB / 381.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002598/0.2843, allocations: 1.118 MB / 382.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.2843, allocations: 89.06 kB / 382.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2844, allocations: 1.125 kB / 382.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.285, allocations: 236.9 kB / 382.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/0.2857, allocations: 141.3 kB / 382.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005932/0.2916, allocations: 6.386 MB / 389.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008666/0.2925, allocations: 102.7 kB / 389.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.2926, allocations: 23.17 kB / 389.3 MB, free: 7.934 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.0003085/0.2929, allocations: 227.5 kB / 389.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.293, allocations: 85.08 kB / 389.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.2932, allocations: 90.77 kB / 389.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2932, allocations: 8.5 kB / 389.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.2932, allocations: 3.938 kB / 389.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002416/0.2956, allocations: 1.26 MB / 391 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.2993, allocations: 1.955 MB / 392.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2993, allocations: 3.094 kB / 392.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006912/0.3, allocations: 153.4 kB / 393.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004877/0.3005, allocations: 197.7 kB / 393.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.3005, allocations: 16.19 kB / 393.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004906/0.3054, allocations: 4.916 MB / 398.2 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3055, allocations: 4 kB / 398.2 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.3086, allocations: 1.428 MB / 399.6 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.3089, allocations: 237 kB / 399.9 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.309, allocations: 20.25 kB / 399.9 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.3097, allocations: 60.81 kB / 400 MB, free: 0 / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.3099, allocations: 58.88 kB / 400 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.3099, allocations: 20.31 kB / 400 MB, free: 15.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005417/0.3105, allocations: 464.6 kB / 400.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3105, allocations: 0 / 400.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009059/0.3114, allocations: 277.8 kB / 400.8 MB, free: 15.65 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.0001578/0.3116, allocations: 126.3 kB / 400.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.3138, allocations: 1.372 MB / 402.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3138, allocations: 1.344 kB / 402.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.3152, allocations: 0.7802 MB / 403 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009656/0.3162, allocations: 216 kB / 403.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.3189, allocations: 1.891 MB / 405.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.3194, allocations: 0.9446 MB / 406.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004463/0.3198, allocations: 101.6 kB / 406.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.32, allocations: 62.7 kB / 406.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.32, allocations: 0 / 406.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of Templates: time 0.02689/0.3469, allocations: 17.03 MB / 423.3 MB, free: 11.21 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 -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/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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches