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.001416/0.001424, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001216/0.001216, allocations: 191 kB / 18.67 MB, free: 4.434 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001133, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2778, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.01037/0.2883, allocations: 5.041 MB / 406.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004336/0.2927, allocations: 1.289 MB / 407.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007988/0.2935, allocations: 11.94 kB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007504/0.2943, allocations: 170.6 kB / 407.9 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.2958, allocations: 317.2 kB / 408.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008539/0.2967, allocations: 231.6 kB / 408.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002176/0.2989, allocations: 1.181 MB / 409.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007495/0.2996, allocations: 315.3 kB / 409.9 MB, free: 296 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008955/0.3005, allocations: 454.4 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009661/0.3015, allocations: 0.5096 MB / 410.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002211/0.3018, allocations: 104 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.3021, allocations: 108 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.3024, allocations: 219.2 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007535/0.3031, allocations: 0.5172 MB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.3051, allocations: 1.203 MB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3051, allocations: 0 / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3052, allocations: 0 / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.3052, allocations: 0 / 413 MB, free: 13.18 MB / 334.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.004112/0.3093, allocations: 1.341 MB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.3094, allocations: 15.83 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003091/0.3097, allocations: 111.7 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.3114, allocations: 0.5871 MB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.3117, allocations: 147 kB / 415.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.3119, allocations: 60.03 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002572/0.3145, allocations: 0.8509 MB / 416.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.3145, allocations: 0 / 416.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.3147, allocations: 32 kB / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.3147, allocations: 12 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002585/0.3173, allocations: 0.5985 MB / 416.8 MB, free: 9.203 MB / 334.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.00616/0.3235, allocations: 2.049 MB / 418.8 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.326, allocations: 0.8538 MB / 419.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.3275, allocations: 394.6 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-05/0.3276, allocations: 8.656 kB / 420.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.03e-05/0.3277, allocations: 47.22 kB / 420.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 4.708e-06/0.3277, allocations: 0 / 420.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.009192/0.3369, allocations: 1.8 MB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005334/0.3375, allocations: 0.8311 MB / 422.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.3389, allocations: 0.6332 MB / 423.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/0.3391, allocations: 45.7 kB / 423.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004379/0.3396, allocations: 341 kB / 423.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003848/0.34, allocations: 252.2 kB / 424 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004026/0.3404, allocations: 146.7 kB / 424.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002445/0.3407, allocations: 382.8 kB / 424.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.3419, allocations: 273.8 kB / 424.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.3435, allocations: 0.5546 MB / 425.3 MB, free: 32 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.3461, allocations: 0.6817 MB / 426 MB, free: 15.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.3462, allocations: 0 / 426 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004903/0.3511, allocations: 1.09 MB / 427.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.3512, allocations: 85.11 kB / 427.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3512, allocations: 0 / 427.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.3524, allocations: 239.2 kB / 427.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.3537, allocations: 147.8 kB / 427.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/0.3675, allocations: 6.924 MB / 434.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.3693, allocations: 99.3 kB / 434.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3695, allocations: 28 kB / 434.6 MB, free: 6.094 MB / 350.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.0006132/0.3701, allocations: 217.7 kB / 434.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.3704, allocations: 90.97 kB / 434.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002828/0.3707, allocations: 87.33 kB / 435 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.3708, allocations: 8 kB / 435 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3708, allocations: 0 / 435 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004412/0.3752, allocations: 1.241 MB / 436.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007181/0.3824, allocations: 1.924 MB / 438.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.3825, allocations: 3.938 kB / 438.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.3838, allocations: 139.8 kB / 438.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009941/0.3848, allocations: 194.5 kB / 438.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.385, allocations: 19.98 kB / 438.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.3959, allocations: 5.346 MB / 443.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.396, allocations: 0 / 443.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006209/0.4022, allocations: 1.399 MB / 445.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007569/0.403, allocations: 243.9 kB / 445.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.4032, allocations: 16 kB / 445.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.4043, allocations: 51.95 kB / 445.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.4046, allocations: 60.56 kB / 445.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.4047, allocations: 23.94 kB / 445.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000953/0.4057, allocations: 459 kB / 446.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4057, allocations: 0 / 446.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4072, allocations: 279.7 kB / 446.4 MB, free: 9.66 MB / 366.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.0002686/0.4075, allocations: 123.7 kB / 446.5 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003961/0.4115, allocations: 1.352 MB / 447.9 MB, free: 8.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.4115, allocations: 4 kB / 447.9 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002527/0.4141, allocations: 0.7575 MB / 448.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.4161, allocations: 234.9 kB / 448.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.4211, allocations: 1.64 MB / 450.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007616/0.4219, allocations: 0.9362 MB / 451.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.4223, allocations: 71.42 kB / 451.5 MB, free: 4.355 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4224, allocations: 0 / 451.5 MB, free: 4.355 MB / 366.1 MB Notification: Performance of Templates: time 0.0415/0.4639, allocations: 22.7 MB / 474.2 MB, free: 13.73 MB / 398.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 -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