Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7475/0.7475, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.249e-05/1.249e-05, allocations: 0 / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1274, allocations: 31.98 MB / 236.8 MB, free: 5.395 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank): time 1.426/1.553, allocations: 297.5 MB / 0.5218 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4163/1.97, allocations: 195.2 MB / 0.7124 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003904/1.97, allocations: 17.22 kB / 0.7124 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002171/1.97, allocations: 106.5 kB / 0.7125 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000581/1.971, allocations: 350.1 kB / 0.7128 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0251/1.996, allocations: 11.22 MB / 0.7238 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001299/1.997, allocations: 1.523 MB / 0.7253 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/1.998, allocations: 0.6553 MB / 0.7259 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004215/1.998, allocations: 0.5159 MB / 0.7264 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004671/1.999, allocations: 0.6021 MB / 0.727 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.633e-05/1.999, allocations: 67.12 kB / 0.7271 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03126/2.03, allocations: 22.76 MB / 0.7493 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003081/2.03, allocations: 253.9 kB / 0.7495 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000673/2.031, allocations: 0.627 MB / 0.7502 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02371/2.055, allocations: 12.41 MB / 0.7623 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/2.055, allocations: 0 / 0.7623 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.673e-06/2.055, allocations: 0 / 0.7623 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.296e-05/2.055, allocations: 0 / 0.7623 GB, free: 12.44 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006803/2.062, allocations: 2.932 MB / 0.7651 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/2.062, allocations: 15.16 kB / 0.7652 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/2.062, allocations: 180.2 kB / 0.7653 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/2.062, allocations: 154 kB / 0.7655 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/2.063, allocations: 0.6279 MB / 0.7661 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/2.063, allocations: 127.4 kB / 0.7662 GB, free: 10 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/2.063, allocations: 128.6 kB / 0.7663 GB, free: 10 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/2.066, allocations: 1.484 MB / 0.7678 GB, free: 9.422 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/2.066, allocations: 9.781 kB / 0.7678 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.894e-05/2.066, allocations: 49.47 kB / 0.7678 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/2.066, allocations: 31.88 kB / 0.7679 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/2.068, allocations: 1.388 MB / 0.7692 GB, free: 9.172 MB / 0.5919 GB 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.02333/2.092, allocations: 20.1 MB / 0.7889 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/2.094, allocations: 1.038 MB / 0.7899 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000888/2.095, allocations: 373.8 kB / 0.7902 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.684/2.779, allocations: 286.5 MB / 1.07 GB, free: 388.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/2.779, allocations: 39.19 kB / 1.07 GB, free: 388.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=58): time 2.434e-06/2.779, allocations: 4 kB / 1.07 GB, free: 388.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=58): time 0.00637/2.785, allocations: 2.06 MB / 1.072 GB, free: 386.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/2.785, allocations: 81.67 kB / 1.072 GB, free: 386.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008586/2.786, allocations: 0.7979 MB / 1.073 GB, free: 385.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.928e-05/2.786, allocations: 44.08 kB / 1.073 GB, free: 385.7 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/2.787, allocations: 0.5983 MB / 1.074 GB, free: 385.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/2.787, allocations: 210.5 kB / 1.074 GB, free: 385.1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/2.787, allocations: 103.9 kB / 1.074 GB, free: 385.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.308e-05/2.787, allocations: 394.4 kB / 1.074 GB, free: 384.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009168/2.788, allocations: 380.1 kB / 1.075 GB, free: 384.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/2.789, allocations: 0.791 MB / 1.075 GB, free: 383.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/2.791, allocations: 1.19 MB / 1.077 GB, free: 382.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/2.791, allocations: 7.938 kB / 1.077 GB, free: 382.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002989/2.794, allocations: 1.47 MB / 1.078 GB, free: 381.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/2.794, allocations: 12 kB / 1.078 GB, free: 381.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/2.794, allocations: 12 kB / 1.078 GB, free: 381.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004931/2.799, allocations: 1.036 MB / 1.079 GB, free: 380.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007264/2.8, allocations: 231.4 kB / 1.079 GB, free: 380.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/2.801, allocations: 1.07 MB / 1.08 GB, free: 379.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009127/2.802, allocations: 190.3 kB / 1.08 GB, free: 379 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/2.802, allocations: 56.64 kB / 1.08 GB, free: 378.9 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (Tank1.Cs1.ftype,Tank1.Cs2.ftype,Tank1.Ce2.ftype,SourceP1.C.ftype,Tank1.fluids[1],PerteDP1.fluid,VanneReglante1.fluid,PuitsP1.fluid,PerteDP2.fluid,PuitsP2.fluid,Tank1.fluid1,SourceP1.fluid1,Tank1.Cs1.diff_on_1,Tank1.Cs2.diff_on_1,Tank1.Ce2.diff_on_2,Tank1.Ce1.diff_on_2,SourceP1.C.diff_on_2,Tank1.Ce2.diff_on_1,VanneReglante1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 101 * 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,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0003608/2.802, allocations: 276.2 kB / 1.081 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/2.802, allocations: 94.88 kB / 1.081 GB, free: 378.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/2.805, allocations: 1.195 MB / 1.082 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/2.805, allocations: 8 kB / 1.082 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/2.805, allocations: 0 / 1.082 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/2.805, allocations: 14.14 kB / 1.082 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/2.809, allocations: 2.182 MB / 1.084 GB, free: 375.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/2.809, allocations: 0 / 1.084 GB, free: 375.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007901/2.81, allocations: 184.5 kB / 1.084 GB, free: 375.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/2.813, allocations: 0.6496 MB / 1.085 GB, free: 375.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/2.813, allocations: 15.86 kB / 1.085 GB, free: 375.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/2.814, allocations: 2.509 MB / 1.087 GB, free: 372.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2.814, allocations: 7.359 kB / 1.087 GB, free: 372.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/2.818, allocations: 1.6 MB / 1.089 GB, free: 371.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002843/2.818, allocations: 250.5 kB / 1.089 GB, free: 371.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/2.818, allocations: 11.88 kB / 1.089 GB, free: 371.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006143/2.819, allocations: 79.12 kB / 1.089 GB, free: 371.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/2.819, allocations: 60.22 kB / 1.089 GB, free: 371.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/2.819, allocations: 19.94 kB / 1.089 GB, free: 371.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004749/2.82, allocations: 0.5091 MB / 1.09 GB, free: 370.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/2.82, allocations: 0 / 1.09 GB, free: 370.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004292/2.824, allocations: 2.016 MB / 1.092 GB, free: 369 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Tank1.z,Tank1.h) * 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 (38): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,8), (2,9), (2,9), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01092/2.835, allocations: 4.909 MB / 1.097 GB, free: 365 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002493/2.837, allocations: 1.036 MB / 1.098 GB, free: 364.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.837, allocations: 0 / 1.098 GB, free: 364.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001259/2.839, allocations: 0.5026 MB / 1.098 GB, free: 363.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000869/2.839, allocations: 178.1 kB / 1.098 GB, free: 363.7 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/2.853, allocations: 9.716 MB / 1.108 GB, free: 354.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/2.854, allocations: 1.052 MB / 1.109 GB, free: 353.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005483/2.854, allocations: 147.4 kB / 1.109 GB, free: 353.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/2.855, allocations: 403.3 kB / 1.109 GB, free: 352.9 MB / 0.8106 GB Notification: Performance of SimCode: time 7.51e-07/2.855, allocations: 4 kB / 1.109 GB, free: 352.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.604/8.459, allocations: 71.54 MB / 1.179 GB, free: 282.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/8.459, allocations: 287.7 kB / 1.18 GB, free: 282.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.758/13.22, allocations: 0.9844 kB / 1.18 GB, free: 282.1 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTank_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTank.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe 2>&1)