Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 47.92 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.09922, allocations: 53.33 MB / 426.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.207/0.3062, allocations: 5.061 MB / 431.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.3083, allocations: 1.337 MB / 433.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003001/0.3086, allocations: 14.66 kB / 433.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.309, allocations: 159.4 kB / 433.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006815/0.3097, allocations: 336.5 kB / 433.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.3101, allocations: 225.8 kB / 433.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.3117, allocations: 1.186 MB / 435.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.3121, allocations: 218 kB / 435.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005234/0.3126, allocations: 460.5 kB / 435.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005524/0.3132, allocations: 0.511 MB / 436.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.3133, allocations: 103.3 kB / 436.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.3135, allocations: 106 kB / 436.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.3137, allocations: 224 kB / 436.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004157/0.3141, allocations: 0.52 MB / 437.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.3153, allocations: 1.212 MB / 438.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3153, allocations: 0 / 438.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3153, allocations: 0 / 438.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.3154, allocations: 1.281 kB / 438.4 MB, free: 6.34 MB / 350.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.002442/0.3178, allocations: 1.364 MB / 439.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3178, allocations: 10.06 kB / 439.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.3181, allocations: 116.1 kB / 439.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009315/0.319, allocations: 0.594 MB / 440.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.3192, allocations: 142.1 kB / 440.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.995e-05/0.3193, allocations: 57.84 kB / 440.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.3207, allocations: 0.8502 MB / 441.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.3207, allocations: 1.891 kB / 441.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-05/0.3208, allocations: 28.16 kB / 441.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.3208, allocations: 14.12 kB / 441.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.3224, allocations: 0.5975 MB / 442.2 MB, free: 4.047 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.003334/0.3257, allocations: 2.052 MB / 444.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.327, allocations: 0.8074 MB / 445.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008149/0.3279, allocations: 355.5 kB / 445.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.2e-05/0.3279, allocations: 17.3 kB / 445.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3279, allocations: 46.45 kB / 445.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.875e-06/0.328, allocations: 3.938 kB / 445.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005324/0.3333, allocations: 1.798 MB / 447.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.3334, allocations: 0.8228 MB / 448.1 MB, free: 340 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00083/0.3343, allocations: 0.6264 MB / 448.7 MB, free: 52 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.47e-05/0.3343, allocations: 44.8 kB / 448.8 MB, free: 8 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.3347, allocations: 346.6 kB / 449.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.3349, allocations: 263.4 kB / 449.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.3352, allocations: 151.8 kB / 449.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.3354, allocations: 385.5 kB / 449.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.3362, allocations: 272.6 kB / 450.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3372, allocations: 0.5499 MB / 450.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.3388, allocations: 0.686 MB / 451.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3388, allocations: 1.375 kB / 451.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003097/0.3419, allocations: 1.087 MB / 452.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.996e-05/0.342, allocations: 85.52 kB / 452.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.342, allocations: 5.406 kB / 452.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008602/0.3428, allocations: 234 kB / 452.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.3435, allocations: 140.7 kB / 452.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009436/0.3529, allocations: 6.94 MB / 459.9 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.3541, allocations: 106.3 kB / 460 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.3542, allocations: 26.36 kB / 460 MB, free: 7.234 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.0004302/0.3546, allocations: 212.9 kB / 460.2 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.3548, allocations: 91.81 kB / 460.3 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.355, allocations: 89.31 kB / 460.4 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.355, allocations: 7.031 kB / 460.4 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.355, allocations: 3.938 kB / 460.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002749/0.3578, allocations: 1.232 MB / 461.6 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/0.3622, allocations: 1.92 MB / 463.5 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3622, allocations: 0 / 463.5 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007005/0.3629, allocations: 140.4 kB / 463.7 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005797/0.3635, allocations: 209.7 kB / 463.9 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.3635, allocations: 11.56 kB / 463.9 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007421/0.3709, allocations: 5.348 MB / 469.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3709, allocations: 0 / 469.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.3745, allocations: 1.39 MB / 470.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.3749, allocations: 244.6 kB / 470.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.375, allocations: 19.48 kB / 470.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006961/0.3757, allocations: 48.36 kB / 470.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.3759, allocations: 62.36 kB / 471 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.376, allocations: 21.3 kB / 471 MB, free: 14.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006004/0.3766, allocations: 452.9 kB / 471.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3766, allocations: 4 kB / 471.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009097/0.3775, allocations: 286 kB / 471.7 MB, free: 14.31 MB / 382.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.000187/0.3777, allocations: 128 kB / 471.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.3801, allocations: 1.319 MB / 473.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3801, allocations: 2.531 kB / 473.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.3815, allocations: 0.7458 MB / 473.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.3826, allocations: 238.1 kB / 474.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.3853, allocations: 1.618 MB / 475.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.3859, allocations: 0.9415 MB / 476.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003855/0.3863, allocations: 104.5 kB / 476.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.3865, allocations: 64.86 kB / 476.9 MB, free: 10.63 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3865, allocations: 0 / 476.9 MB, free: 10.63 MB / 382.1 MB Notification: Performance of Templates: time 0.03075/0.4172, allocations: 18.76 MB / 495.7 MB, free: 9.504 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.5422069914639]