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.0009314/0.0009314, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004133/0.004133, allocations: 160.4 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8519/0.8519, allocations: 177.1 MB / 205 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 2.084e-06/2.084e-06, allocations: 4 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.39e-05/1.598e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003346/0.003362, allocations: 4.536 MB / 330.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.004582, allocations: 1.293 MB / 331.6 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.00476, allocations: 11.94 kB / 331.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.005031, allocations: 154.6 kB / 331.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003825/0.005414, allocations: 357 kB / 332.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.005666, allocations: 231.5 kB / 332.4 MB, free: 8.836 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007042/0.00637, allocations: 1.226 MB / 333.6 MB, free: 7.605 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.006605, allocations: 214.5 kB / 333.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004214/0.007026, allocations: 0.6705 MB / 334.5 MB, free: 6.715 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.007328, allocations: 386.9 kB / 334.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.559e-05/0.007413, allocations: 104 kB / 335 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.646e-05/0.0075, allocations: 111.9 kB / 335.1 MB, free: 6.125 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.007605, allocations: 227.2 kB / 335.3 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.007828, allocations: 383.2 kB / 335.7 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007419/0.00857, allocations: 1.254 MB / 336.9 MB, free: 4.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.008572, allocations: 0 / 336.9 MB, free: 4.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.008572, allocations: 0 / 336.9 MB, free: 4.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.00858, allocations: 0 / 336.9 MB, free: 4.27 MB / 298.7 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.001327/0.009907, allocations: 1.287 MB / 338.2 MB, free: 2.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.009939, allocations: 16.02 kB / 338.2 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.01006, allocations: 112.3 kB / 338.3 MB, free: 2.805 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.01065, allocations: 0.5266 MB / 338.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.0108, allocations: 305.2 kB / 339.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.01087, allocations: 52.38 kB / 339.2 MB, free: 1.852 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.01192, allocations: 1.601 MB / 340.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.01194, allocations: 7.938 kB / 340.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.01198, allocations: 28 kB / 340.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.01199, allocations: 12 kB / 340.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007916/0.01278, allocations: 0.5984 MB / 341.5 MB, free: 15.31 MB / 314.7 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.001805/0.01459, allocations: 1.519 MB / 343 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007298/0.01532, allocations: 0.5902 MB / 343.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004457/0.01576, allocations: 355.8 kB / 343.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.0158, allocations: 12.66 kB / 343.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.01583, allocations: 55.16 kB / 344 MB, free: 12.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=73): time 1.663e-06/0.01583, allocations: 3.938 kB / 344 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.002485/0.01831, allocations: 1.476 MB / 345.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002204/0.01853, allocations: 0.8234 MB / 346.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000447/0.01898, allocations: 0.6018 MB / 346.9 MB, free: 9.594 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.01903, allocations: 45.7 kB / 346.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.0192, allocations: 341.2 kB / 347.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.01932, allocations: 269.6 kB / 347.5 MB, free: 8.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.01946, allocations: 142.7 kB / 347.7 MB, free: 8.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.01957, allocations: 382.8 kB / 348 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.01997, allocations: 355 kB / 348.4 MB, free: 8.043 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.02069, allocations: 1.391 MB / 349.8 MB, free: 6.352 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007756/0.02146, allocations: 0.6817 MB / 350.5 MB, free: 5.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.02147, allocations: 0 / 350.5 MB, free: 5.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00138/0.02285, allocations: 1.17 MB / 351.6 MB, free: 4.418 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.02289, allocations: 85.11 kB / 351.7 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.02289, allocations: 0 / 351.7 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003937/0.02329, allocations: 239.1 kB / 352 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.02359, allocations: 135.8 kB / 352.1 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.02782, allocations: 6.392 MB / 358.5 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.02817, allocations: 91.61 kB / 358.6 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.297e-05/0.0282, allocations: 27.94 kB / 358.6 MB, free: 13.02 MB / 330.7 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.0002025/0.0284, allocations: 225.7 kB / 358.8 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.953e-05/0.02848, allocations: 87.48 kB / 358.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.983e-05/0.02857, allocations: 94.94 kB / 359 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.02858, allocations: 4 kB / 359 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.02858, allocations: 4 kB / 359 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001297/0.02988, allocations: 1.229 MB / 360.2 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.03183, allocations: 1.655 MB / 361.9 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.03183, allocations: 0 / 361.9 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.03215, allocations: 143.8 kB / 362 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002797/0.03243, allocations: 198.5 kB / 362.2 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.03246, allocations: 16 kB / 362.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/0.03573, allocations: 4.939 MB / 367.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.03573, allocations: 0 / 367.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.03744, allocations: 1.388 MB / 368.6 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.03764, allocations: 171.2 kB / 368.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.703e-05/0.0377, allocations: 20 kB / 368.7 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.038, allocations: 47.94 kB / 368.8 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.03811, allocations: 68.48 kB / 368.9 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.03813, allocations: 19.98 kB / 368.9 MB, free: 2.207 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003193/0.03845, allocations: 435.1 kB / 369.3 MB, free: 1.789 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03845, allocations: 0 / 369.3 MB, free: 1.789 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004962/0.03895, allocations: 283.7 kB / 369.6 MB, free: 1.512 MB / 330.7 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.0001186/0.03907, allocations: 123.2 kB / 369.7 MB, free: 1.383 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.04036, allocations: 1.396 MB / 371.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.04036, allocations: 0 / 371.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006998/0.04106, allocations: 0.7379 MB / 371.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.04162, allocations: 238.8 kB / 372.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.04325, allocations: 1.506 MB / 373.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.04348, allocations: 345.7 kB / 373.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.04363, allocations: 72.48 kB / 374 MB, free: 12.89 MB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.04363, allocations: 0 / 374 MB, free: 12.89 MB / 346.7 MB Notification: Performance of Templates: time 0.01466/0.05828, allocations: 22.87 MB / 396.9 MB, free: 6.102 MB / 362.7 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.472389434464276]