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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 189.4 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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=1000,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=1000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 43.92 kB / 370.9 MB, free: 9.375 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2287, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006609/0.2353, allocations: 5.089 MB / 428.2 MB, free: 9.59 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002697/0.238, allocations: 1.297 MB / 429.5 MB, free: 8.289 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00034/0.2384, allocations: 11.94 kB / 429.5 MB, free: 8.277 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004832/0.2388, allocations: 166.5 kB / 429.7 MB, free: 8.113 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006546/0.2395, allocations: 333.2 kB / 430 MB, free: 7.785 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.24, allocations: 231.6 kB / 430.2 MB, free: 7.559 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001204/0.2412, allocations: 1.18 MB / 431.4 MB, free: 6.375 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.2415, allocations: 220.1 kB / 431.6 MB, free: 6.145 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004969/0.242, allocations: 470.4 kB / 432.1 MB, free: 5.684 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0006004/0.2426, allocations: 0.5057 MB / 432.6 MB, free: 5.176 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001576/0.2428, allocations: 104 kB / 432.7 MB, free: 5.074 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.243, allocations: 104 kB / 432.8 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.2432, allocations: 231.2 kB / 433 MB, free: 4.746 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.2437, allocations: 0.5211 MB / 433.5 MB, free: 4.223 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001245/0.245, allocations: 1.198 MB / 434.7 MB, free: 3.023 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.245, allocations: 3.984 kB / 434.7 MB, free: 3.02 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.724e-06/0.245, allocations: 3.938 kB / 434.7 MB, free: 3.016 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.138e-05/0.245, allocations: 0 / 434.7 MB, free: 3.016 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.00259/0.2476, allocations: 1.292 MB / 436 MB, free: 1.672 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.2476, allocations: 12.03 kB / 436 MB, free: 1.66 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.2478, allocations: 112.3 kB / 436.2 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.2489, allocations: 0.539 MB / 436.7 MB, free: 0.9805 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.2491, allocations: 143 kB / 436.8 MB, free: 0.8242 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2492, allocations: 64.08 kB / 436.9 MB, free: 0.7617 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.2507, allocations: 0.8431 MB / 437.7 MB, free: 15.82 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.2507, allocations: 0 / 437.7 MB, free: 15.82 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.275e-05/0.2508, allocations: 28 kB / 437.8 MB, free: 15.79 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.2508, allocations: 16 kB / 437.8 MB, free: 15.77 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.2523, allocations: 0.6023 MB / 438.4 MB, free: 15.17 MB / 350.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.003461/0.2558, allocations: 2.004 MB / 440.4 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.2571, allocations: 0.5826 MB / 441 MB, free: 12.48 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008636/0.258, allocations: 358.5 kB / 441.3 MB, free: 12.12 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.849e-05/0.2581, allocations: 24.62 kB / 441.3 MB, free: 12.1 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.2581, allocations: 43.22 kB / 441.4 MB, free: 12.05 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=73): time 2.194e-06/0.2581, allocations: 0 / 441.4 MB, free: 12.05 MB / 350.1 MB
Notification: Performance of matching and sorting (n=73): time 0.005292/0.2634, allocations: 1.484 MB / 442.9 MB, free: 10.55 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000439/0.2638, allocations: 0.8234 MB / 443.7 MB, free: 9.531 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008464/0.2647, allocations: 0.6371 MB / 444.3 MB, free: 8.887 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.052e-05/0.2648, allocations: 41.7 kB / 444.4 MB, free: 8.84 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.265, allocations: 341.4 kB / 444.7 MB, free: 8.504 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.2653, allocations: 269.6 kB / 445 MB, free: 8.238 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.2656, allocations: 146.6 kB / 445.1 MB, free: 8.09 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002013/0.2658, allocations: 382.8 kB / 445.5 MB, free: 7.707 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007112/0.2665, allocations: 277.8 kB / 445.8 MB, free: 7.434 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.2675, allocations: 0.5507 MB / 446.3 MB, free: 6.781 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.269, allocations: 0.6856 MB / 447 MB, free: 6.066 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.269, allocations: 0 / 447 MB, free: 6.066 MB / 350.1 MB
Notification: Performance of matching and sorting (n=85) (initialization): time 0.002887/0.2719, allocations: 1.091 MB / 448.1 MB, free: 4.941 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.399e-05/0.2719, allocations: 89.09 kB / 448.2 MB, free: 4.836 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2719, allocations: 0 / 448.2 MB, free: 4.836 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007393/0.2727, allocations: 235.2 kB / 448.4 MB, free: 4.594 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006678/0.2734, allocations: 139.8 kB / 448.5 MB, free: 4.457 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008586/0.2819, allocations: 6.522 MB / 455.1 MB, free: 13.48 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009334/0.2829, allocations: 103.4 kB / 455.2 MB, free: 13.38 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.2829, allocations: 24 kB / 455.2 MB, free: 13.35 MB / 366.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.0003894/0.2833, allocations: 217.7 kB / 455.4 MB, free: 13.13 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.2835, allocations: 87.48 kB / 455.5 MB, free: 13.04 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.2837, allocations: 95.33 kB / 455.6 MB, free: 12.94 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.2837, allocations: 8 kB / 455.6 MB, free: 12.93 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2837, allocations: 0 / 455.6 MB, free: 12.93 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002766/0.2864, allocations: 1.233 MB / 456.8 MB, free: 11.59 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/0.2907, allocations: 1.892 MB / 458.7 MB, free: 9.633 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2907, allocations: 4 kB / 458.7 MB, free: 9.629 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006938/0.2914, allocations: 135.8 kB / 458.8 MB, free: 9.496 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0005685/0.2919, allocations: 198.7 kB / 459 MB, free: 9.293 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.872e-05/0.292, allocations: 16 kB / 459.1 MB, free: 9.277 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006955/0.2989, allocations: 5.043 MB / 464.1 MB, free: 3.891 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/0.2989, allocations: 4.031 kB / 464.1 MB, free: 3.887 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.3025, allocations: 1.399 MB / 465.5 MB, free: 2.469 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0004318/0.3029, allocations: 159.3 kB / 465.7 MB, free: 2.312 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.3031, allocations: 24.11 kB / 465.7 MB, free: 2.289 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.3037, allocations: 55.95 kB / 465.7 MB, free: 2.234 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.3039, allocations: 64.53 kB / 465.8 MB, free: 2.168 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.304, allocations: 20 kB / 465.8 MB, free: 2.148 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0006623/0.3046, allocations: 459 kB / 466.3 MB, free: 1.703 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3046, allocations: 0 / 466.3 MB, free: 1.703 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0008852/0.3055, allocations: 275.8 kB / 466.5 MB, free: 1.434 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.0001846/0.3057, allocations: 123.2 kB / 466.7 MB, free: 1.301 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002399/0.3081, allocations: 1.32 MB / 468 MB, free: 15.89 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.3081, allocations: 4 kB / 468 MB, free: 15.89 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001531/0.3096, allocations: 0.7379 MB / 468.7 MB, free: 15.11 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3107, allocations: 238.1 kB / 469 MB, free: 14.88 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.3136, allocations: 1.633 MB / 470.6 MB, free: 13.21 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005938/0.3142, allocations: 0.9362 MB / 471.5 MB, free: 12.25 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0004442/0.3146, allocations: 106.4 kB / 471.6 MB, free: 12.14 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.3148, allocations: 63.44 kB / 471.7 MB, free: 12.08 MB / 382.1 MB
Notification: Performance of SimCode: time 7.61e-07/0.3148, allocations: 4 kB / 471.7 MB, free: 12.08 MB / 382.1 MB
Notification: Performance of Templates: time 0.03251/0.3473, allocations: 19.19 MB / 490.9 MB, free: 9.16 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.3079199474304914]