Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001352/0.001352, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001444/0.001445, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09723, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2221/0.3193, allocations: 15.84 MB / 390.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.3316, allocations: 6.839 MB / 397.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3335, allocations: 25.91 kB / 397.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.335, allocations: 335.9 kB / 397.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003426/0.3384, allocations: 1.086 MB / 398.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006028/0.3445, allocations: 1.802 MB / 400.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003824/0.3483, allocations: 2.159 MB / 402.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.3495, allocations: 0.5967 MB / 403.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.3515, allocations: 0.7996 MB / 404.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.3533, allocations: 0.7918 MB / 404.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003268/0.3536, allocations: 80.44 kB / 405 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.3569, allocations: 1.228 MB / 406.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000483/0.3573, allocations: 316.2 kB / 406.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007437/0.3581, allocations: 458.7 kB / 407 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003653/0.3618, allocations: 1.848 MB / 408.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.633e-05/0.3618, allocations: 5.188 kB / 408.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3618, allocations: 0 / 408.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.172e-05/0.3619, allocations: 0 / 408.8 MB, free: 9.73 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003567/0.3655, allocations: 1.3 MB / 410.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3655, allocations: 9.875 kB / 410.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.3657, allocations: 99.97 kB / 410.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003677/0.366, allocations: 103.3 kB / 410.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.3672, allocations: 0.6326 MB / 411 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.3673, allocations: 111.2 kB / 411.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.3674, allocations: 60.25 kB / 411.1 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.3689, allocations: 0.8913 MB / 412 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.369, allocations: 1.281 kB / 412 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.731e-05/0.3691, allocations: 30.36 kB / 412.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.37e-05/0.3692, allocations: 52.11 kB / 412.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.3707, allocations: 0.8409 MB / 412.9 MB, free: 6.945 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.006129/0.3768, allocations: 3.451 MB / 416.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.3778, allocations: 0.6518 MB / 417.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.3784, allocations: 368.6 kB / 417.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003095/0.3815, allocations: 2.048 MB / 419.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.3816, allocations: 41.86 kB / 419.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.505e-06/0.3816, allocations: 9.312 kB / 419.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.007032/0.3886, allocations: 2.839 MB / 422.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.3887, allocations: 85.67 kB / 422.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008648/0.3896, allocations: 0.6837 MB / 423.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.3896, allocations: 37.7 kB / 423.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.3899, allocations: 341 kB / 423.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.3901, allocations: 241.9 kB / 423.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.3904, allocations: 154.6 kB / 423.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3906, allocations: 390.8 kB / 424.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005887/0.3912, allocations: 372.6 kB / 424.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006929/0.3919, allocations: 0.5191 MB / 425.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.3931, allocations: 0.8599 MB / 426 MB, free: 11.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3932, allocations: 4 kB / 426 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002008/0.3952, allocations: 1.165 MB / 427.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3952, allocations: 8 kB / 427.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3952, allocations: 8.031 kB / 427.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.3966, allocations: 456.4 kB / 427.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006547/0.3973, allocations: 155.8 kB / 427.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.3985, allocations: 1.021 MB / 428.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006502/0.3992, allocations: 35.98 kB / 428.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.899e-05/0.3993, allocations: 33.42 kB / 428.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008239/0.4001, allocations: 0.5292 MB / 429.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000727/0.4008, allocations: 0.5121 MB / 429.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001341/0.4022, allocations: 0.8412 MB / 430.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.328e-06/0.4022, allocations: 4 kB / 430.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001959/0.4042, allocations: 1.102 MB / 431.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4042, allocations: 8.562 kB / 431.9 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4042, allocations: 8 kB / 431.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000698/0.4049, allocations: 316.6 kB / 432.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006435/0.4056, allocations: 163.8 kB / 432.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.4066, allocations: 0.9073 MB / 433.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.4073, allocations: 32.02 kB / 433.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.687e-05/0.4073, allocations: 32 kB / 433.3 MB, free: 4.309 MB / 350.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 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000284/0.4076, allocations: 236 kB / 433.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.4078, allocations: 87.42 kB / 433.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002165/0.41, allocations: 1.092 MB / 434.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.41, allocations: 8 kB / 434.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.41, allocations: 0 / 434.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.4101, allocations: 3.984 kB / 434.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.4134, allocations: 1.997 MB / 436.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4134, allocations: 7.984 kB / 436.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005798/0.414, allocations: 111.9 kB / 436.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.4152, allocations: 452.5 kB / 437.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.289e-05/0.4152, allocations: 16 kB / 437.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.4165, allocations: 1.03 MB / 438.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4165, allocations: 8 kB / 438.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.419, allocations: 1.597 MB / 439.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005525/0.4195, allocations: 248.5 kB / 440.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.4198, allocations: 16 kB / 440.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006608/0.4204, allocations: 35.91 kB / 440.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.4206, allocations: 56.58 kB / 440.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4207, allocations: 35.97 kB / 440.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000695/0.4214, allocations: 475 kB / 440.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4214, allocations: 0 / 440.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002059/0.4235, allocations: 0.5887 MB / 441.4 MB, free: 12.1 MB / 366.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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004344/0.4278, allocations: 2.526 MB / 443.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.4308, allocations: 1.408 MB / 445.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.4309, allocations: 0 / 445.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.4319, allocations: 471.5 kB / 445.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.4339, allocations: 399.9 kB / 446.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.4469, allocations: 7.769 MB / 453.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006483/0.4476, allocations: 0.9911 MB / 454.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.4487, allocations: 310.5 kB / 455.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.4491, allocations: 283.3 kB / 455.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4491, allocations: 0 / 455.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06641/0.5156, allocations: 30.81 MB / 486.3 MB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.21, allocations: 19.94 kB / 486.3 MB, free: 14.77 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)