Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001038/0.001038, allocations: 100.8 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000208/0.0002081, allocations: 8 kB / 307.1 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.0879, allocations: 51.53 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1648/0.2527, allocations: 15.35 MB / 374 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008065/0.2608, allocations: 6.617 MB / 380.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006854/0.2616, allocations: 30.12 kB / 380.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007487/0.2623, allocations: 279.5 kB / 380.9 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002411/0.2647, allocations: 1.029 MB / 381.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003981/0.2687, allocations: 1.379 MB / 383.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.2719, allocations: 2.626 MB / 385.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007663/0.2726, allocations: 0.4935 MB / 386.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.2738, allocations: 0.718 MB / 387.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009464/0.2747, allocations: 0.7734 MB / 387.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.2748, allocations: 45.5 kB / 388 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002217/0.2771, allocations: 1.064 MB / 389 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002867/0.2774, allocations: 269.1 kB / 389.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.2775, allocations: 179.4 kB / 389.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.2789, allocations: 1.29 MB / 390.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2789, allocations: 0 / 390.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2789, allocations: 1.344 kB / 390.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2789, allocations: 0 / 390.8 MB, free: 6.082 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001953/0.2809, allocations: 1.115 MB / 391.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2809, allocations: 9.062 kB / 391.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002935/0.2812, allocations: 93.92 kB / 392 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000704/0.2819, allocations: 0.5721 MB / 392.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.401e-05/0.282, allocations: 114.2 kB / 392.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-05/0.2821, allocations: 54.97 kB / 392.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.2834, allocations: 0.8957 MB / 393.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.2834, allocations: 5.109 kB / 393.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.461e-05/0.2835, allocations: 33.36 kB / 393.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.075e-05/0.2836, allocations: 53.17 kB / 393.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.2848, allocations: 0.8405 MB / 394.5 MB, free: 3.605 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.004405/0.2892, allocations: 3.469 MB / 398 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008652/0.2901, allocations: 0.654 MB / 398.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.2906, allocations: 367.3 kB / 399 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00255/0.2932, allocations: 2.059 MB / 401.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.2932, allocations: 49.52 kB / 401.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.974e-06/0.2932, allocations: 0 / 401.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006063/0.2993, allocations: 2.851 MB / 404 MB, free: 12.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.2994, allocations: 86.72 kB / 404.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007387/0.3001, allocations: 0.675 MB / 404.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.3002, allocations: 37.3 kB / 404.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.3004, allocations: 335.4 kB / 405.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.3006, allocations: 222.8 kB / 405.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.3007, allocations: 15.88 kB / 405.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3008, allocations: 389.9 kB / 405.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.3014, allocations: 357.8 kB / 406.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006596/0.302, allocations: 0.5092 MB / 406.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000634/0.3027, allocations: 419 kB / 407 MB, free: 10.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3027, allocations: 4 kB / 407 MB, free: 10.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001852/0.3046, allocations: 1.145 MB / 408.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/0.3047, allocations: 215.1 kB / 408.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3047, allocations: 4 kB / 408.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.3059, allocations: 440.4 kB / 408.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006245/0.3065, allocations: 159.8 kB / 408.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.3077, allocations: 1.024 MB / 410 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.3082, allocations: 43.83 kB / 410 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.808e-05/0.3083, allocations: 35.98 kB / 410 MB, free: 7.324 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.792e-06/0.3083, allocations: 4 kB / 410 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001675/0.31, allocations: 1 MB / 411 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.31, allocations: 8.094 kB / 411 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006435/0.3106, allocations: 320.5 kB / 411.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006235/0.3113, allocations: 167.8 kB / 411.5 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009139/0.3122, allocations: 0.9034 MB / 412.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.3127, allocations: 39.98 kB / 412.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/0.3128, allocations: 31.98 kB / 412.5 MB, free: 4.828 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003669/0.3131, allocations: 332.9 kB / 412.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3133, allocations: 79.02 kB / 412.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.3152, allocations: 1.088 MB / 414 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3152, allocations: 8 kB / 414 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3152, allocations: 0 / 414 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3152, allocations: 8.547 kB / 414 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.3182, allocations: 1.995 MB / 416 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3182, allocations: 0 / 416 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/0.3187, allocations: 127.8 kB / 416.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.3198, allocations: 449.4 kB / 416.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.3199, allocations: 23.92 kB / 416.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.321, allocations: 1.029 MB / 417.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.321, allocations: 4 kB / 417.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/0.3234, allocations: 1.588 MB / 419.2 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003586/0.3237, allocations: 256 kB / 419.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.3239, allocations: 12 kB / 419.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.3244, allocations: 51.89 kB / 419.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3246, allocations: 56.58 kB / 419.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.5e-05/0.3246, allocations: 27.97 kB / 419.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005673/0.3252, allocations: 475 kB / 420.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3252, allocations: 0 / 420.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001529/0.3268, allocations: 0.5779 MB / 420.6 MB, free: 12.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.3279, allocations: 483.7 kB / 421.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.3307, allocations: 1.376 MB / 422.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.3307, allocations: 4.125 kB / 422.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009215/0.3316, allocations: 463.5 kB / 422.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.3333, allocations: 369.2 kB / 423.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.3367, allocations: 2.027 MB / 425.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.3374, allocations: 0.9992 MB / 426.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.3385, allocations: 310.5 kB / 426.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.3387, allocations: 71.41 kB / 426.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3387, allocations: 0 / 426.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of Templates: time 0.03176/0.3705, allocations: 21.26 MB / 448 MB, free: 1.352 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches