Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001066, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.001252/0.001252, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.32/1.32, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002457, allocations: 4 kB / 301.5 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.08925, allocations: 50.41 MB / 351.9 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1943/0.2836, allocations: 29.5 MB / 381.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.3012, allocations: 15.5 MB / 396.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001875/0.3031, allocations: 62.78 kB / 397 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.3045, allocations: 0.5184 MB / 397.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005231/0.3098, allocations: 2.154 MB / 399.7 MB, free: 296 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009368/0.3191, allocations: 3.175 MB / 402.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00691/0.3261, allocations: 6.147 MB / 409 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0019/0.328, allocations: 1.018 MB / 410 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003104/0.3311, allocations: 1.322 MB / 411.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003357/0.3345, allocations: 1.649 MB / 413 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000349/0.3349, allocations: 88 kB / 413.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006295/0.3412, allocations: 2.359 MB / 415.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006607/0.3418, allocations: 0.5452 MB / 416 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.3429, allocations: 0.8142 MB / 416.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005716/0.3486, allocations: 3.607 MB / 420.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3487, allocations: 0 / 420.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3487, allocations: 7.938 kB / 420.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.3487, allocations: 0 / 420.4 MB, free: 0.7695 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00419/0.3529, allocations: 1.897 MB / 422.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3529, allocations: 8.031 kB / 422.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002361/0.3532, allocations: 164.5 kB / 422.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.3536, allocations: 174.1 kB / 422.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.355, allocations: 1.011 MB / 423.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.3552, allocations: 187 kB / 423.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.3554, allocations: 99.88 kB / 423.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/0.358, allocations: 1.757 MB / 425.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.358, allocations: 0 / 425.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.3582, allocations: 43.97 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.3583, allocations: 109.9 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.361, allocations: 1.788 MB / 427.6 MB, free: 9.355 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.01007/0.3711, allocations: 6.743 MB / 434.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.3728, allocations: 1.235 MB / 435.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.3738, allocations: 0.769 MB / 436.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005049/0.3789, allocations: 4.287 MB / 440.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.3789, allocations: 43.56 kB / 440.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00063/0.3796, allocations: 206.6 kB / 440.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.395e-06/0.3796, allocations: 0 / 440.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01689/0.3965, allocations: 5.758 MB / 446.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/0.3966, allocations: 141.5 kB / 446.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.3982, allocations: 1.257 MB / 448.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.3983, allocations: 49.7 kB / 448.1 MB, free: 4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004513/0.3988, allocations: 0.6052 MB / 448.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/0.3991, allocations: 394.4 kB / 449.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.3993, allocations: 117.7 kB / 449.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3994, allocations: 309.1 kB / 449.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.4008, allocations: 0.7105 MB / 450.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.4022, allocations: 1.072 MB / 451.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002442/0.4047, allocations: 1.739 MB / 453 MB, free: 14.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.4047, allocations: 4 kB / 453 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003673/0.4084, allocations: 2.284 MB / 455.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.4086, allocations: 390 kB / 455.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4087, allocations: 8 kB / 455.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006635/0.4153, allocations: 1.284 MB / 457 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.4164, allocations: 295.6 kB / 457.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/0.4187, allocations: 1.602 MB / 458.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.4199, allocations: 91.73 kB / 459 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.42, allocations: 71.97 kB / 459 MB, free: 8.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.42, allocations: 4 kB / 459.1 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003312/0.4233, allocations: 2.035 MB / 461.1 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.4234, allocations: 8 kB / 461.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005983/0.4294, allocations: 1.122 MB / 462.2 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.4305, allocations: 311.5 kB / 462.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.4325, allocations: 1.473 MB / 464 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.4337, allocations: 79.91 kB / 464.1 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.4338, allocations: 71.95 kB / 464.1 MB, free: 3.453 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0008129/0.4346, allocations: 460.6 kB / 464.6 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002993/0.4349, allocations: 146.2 kB / 464.7 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003913/0.4389, allocations: 2.085 MB / 466.8 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.4389, allocations: 16 kB / 466.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4389, allocations: 7.938 kB / 466.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.4389, allocations: 11.91 kB / 466.9 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005411/0.4443, allocations: 3.59 MB / 470.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4444, allocations: 3.984 kB / 470.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.4452, allocations: 195.7 kB / 470.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003655/0.4489, allocations: 0.9967 MB / 471.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.449, allocations: 31.98 kB / 471.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/0.4512, allocations: 1.607 MB / 473.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4512, allocations: 0 / 473.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004425/0.4556, allocations: 2.915 MB / 476.2 MB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008414/0.4565, allocations: 403.2 kB / 476.6 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.4568, allocations: 23.98 kB / 476.6 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.458, allocations: 91.8 kB / 476.7 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.4582, allocations: 97.16 kB / 476.8 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.4583, allocations: 51.97 kB / 476.8 MB, free: 6.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.4596, allocations: 0.8479 MB / 477.7 MB, free: 5.754 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4596, allocations: 0 / 477.7 MB, free: 5.754 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00287/0.4625, allocations: 1.163 MB / 478.9 MB, free: 4.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006704/0.4692, allocations: 4.209 MB / 483.1 MB, free: 356 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006082/0.4753, allocations: 2.819 MB / 485.9 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.4753, allocations: 4 kB / 485.9 MB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002083/0.4774, allocations: 0.8686 MB / 486.8 MB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003336/0.4808, allocations: 0.6267 MB / 487.4 MB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02385/0.5046, allocations: 15.71 MB / 0.4913 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008913/0.5056, allocations: 1.3 MB / 0.4926 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002048/0.5076, allocations: 0.59 MB / 0.4931 GB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007393/0.5084, allocations: 0.5383 MB / 0.4937 GB, free: 9.141 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5084, allocations: 0 / 0.4937 GB, free: 9.141 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7316/1.24, allocations: 54.83 MB / 0.5472 GB, free: 154 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.24, allocations: 223.5 kB / 0.5474 GB, free: 153.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.702/4.942, allocations: 4 kB / 0.5474 GB, free: 153.8 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches