Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.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.Book.SimpleExamples.Volume.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_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.7528/0.7528, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.379e-05/1.381e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 31.99 MB / 236.9 MB, free: 5.441 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.Book.SimpleExamples.Volume.TestTank): time 1.401/1.531, allocations: 297.4 MB / 0.5217 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4096/1.941, allocations: 195.2 MB / 0.7123 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005176/1.941, allocations: 17.78 kB / 0.7123 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002812/1.941, allocations: 103.3 kB / 0.7124 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007555/1.942, allocations: 353.8 kB / 0.7128 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02404/1.966, allocations: 11.22 MB / 0.7237 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001175/1.967, allocations: 1.524 MB / 0.7252 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005944/1.968, allocations: 0.6548 MB / 0.7259 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/1.969, allocations: 0.5112 MB / 0.7264 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/1.969, allocations: 0.603 MB / 0.7269 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.45e-05/1.969, allocations: 66.31 kB / 0.727 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02891/1.998, allocations: 22.76 MB / 0.7492 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002761/1.998, allocations: 250 kB / 0.7495 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006318/1.999, allocations: 0.6268 MB / 0.7501 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02214/2.021, allocations: 12.36 MB / 0.7622 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/2.021, allocations: 2.969 kB / 0.7622 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.304e-06/2.021, allocations: 0 / 0.7622 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.337e-05/2.021, allocations: 4 kB / 0.7622 GB, free: 12.47 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.006693/2.028, allocations: 2.925 MB / 0.765 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/2.028, allocations: 9.844 kB / 0.765 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001828/2.028, allocations: 182.5 kB / 0.7652 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/2.028, allocations: 159.8 kB / 0.7654 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/2.029, allocations: 0.6334 MB / 0.766 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/2.029, allocations: 123.2 kB / 0.7661 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/2.029, allocations: 128.5 kB / 0.7662 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/2.032, allocations: 1.487 MB / 0.7677 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/2.032, allocations: 6.844 kB / 0.7677 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.52e-05/2.032, allocations: 53.41 kB / 0.7677 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/2.032, allocations: 31.06 kB / 0.7678 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/2.034, allocations: 1.377 MB / 0.7691 GB, free: 9.215 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.02257/2.057, allocations: 20.1 MB / 0.7887 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/2.059, allocations: 1.038 MB / 0.7897 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000897/2.06, allocations: 384.1 kB / 0.7901 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6773/2.738, allocations: 286.5 MB / 1.07 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/2.738, allocations: 43.5 kB / 1.07 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=58): time 2.755e-06/2.738, allocations: 0 / 1.07 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=58): time 0.006005/2.744, allocations: 2.062 MB / 1.072 GB, free: 386.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/2.744, allocations: 81.67 kB / 1.072 GB, free: 386.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007843/2.744, allocations: 0.7918 MB / 1.073 GB, free: 386.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/2.745, allocations: 41.25 kB / 1.073 GB, free: 386 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/2.745, allocations: 0.5988 MB / 1.073 GB, free: 385.6 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/2.745, allocations: 213.5 kB / 1.074 GB, free: 385.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/2.745, allocations: 99.78 kB / 1.074 GB, free: 385.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.693e-05/2.745, allocations: 397.5 kB / 1.074 GB, free: 385 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008892/2.746, allocations: 378.9 kB / 1.074 GB, free: 384.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009777/2.747, allocations: 0.7922 MB / 1.075 GB, free: 383.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001892/2.749, allocations: 1.2 MB / 1.076 GB, free: 382.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/2.749, allocations: 4 kB / 1.076 GB, free: 382.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002912/2.752, allocations: 1.507 MB / 1.078 GB, free: 381.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/2.752, allocations: 12 kB / 1.078 GB, free: 381.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/2.752, allocations: 12 kB / 1.078 GB, free: 381.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004204/2.756, allocations: 0.8903 MB / 1.079 GB, free: 380.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009686/2.757, allocations: 291 kB / 1.079 GB, free: 380.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/2.758, allocations: 2.501 MB / 1.081 GB, free: 378 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008625/2.759, allocations: 192.2 kB / 1.082 GB, free: 377.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/2.759, allocations: 57.48 kB / 1.082 GB, free: 377.7 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 (107): * Single equations (assignments): 103 * 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,6), (2,7), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003133/2.76, allocations: 282.7 kB / 1.082 GB, free: 377.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/2.76, allocations: 90.88 kB / 1.082 GB, free: 377.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/2.763, allocations: 1.201 MB / 1.083 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/2.763, allocations: 8 kB / 1.083 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/2.763, allocations: 0 / 1.083 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/2.763, allocations: 7.922 kB / 1.083 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003552/2.766, allocations: 2.188 MB / 1.085 GB, free: 374.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/2.766, allocations: 0 / 1.085 GB, free: 374.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/2.767, allocations: 179.6 kB / 1.086 GB, free: 374.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002827/2.77, allocations: 0.6637 MB / 1.086 GB, free: 373.9 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.201e-05/2.77, allocations: 15.31 kB / 1.086 GB, free: 373.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/2.771, allocations: 2.509 MB / 1.089 GB, free: 371.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/2.771, allocations: 0 / 1.089 GB, free: 371.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/2.775, allocations: 1.598 MB / 1.09 GB, free: 370.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/2.775, allocations: 246.8 kB / 1.09 GB, free: 370 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.531e-05/2.775, allocations: 11.81 kB / 1.09 GB, free: 370 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/2.776, allocations: 78.61 kB / 1.091 GB, free: 369.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/2.776, allocations: 63.73 kB / 1.091 GB, free: 369.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/2.776, allocations: 23.92 kB / 1.091 GB, free: 369.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004411/2.776, allocations: 0.5086 MB / 1.091 GB, free: 369.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/2.776, allocations: 1.969 kB / 1.091 GB, free: 369.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003902/2.78, allocations: 2.017 MB / 1.093 GB, free: 367.8 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.01041/2.791, allocations: 4.907 MB / 1.098 GB, free: 363.8 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002315/2.793, allocations: 1.016 MB / 1.099 GB, free: 363 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/2.793, allocations: 0 / 1.099 GB, free: 363 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/2.794, allocations: 0.4954 MB / 1.099 GB, free: 362.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/2.795, allocations: 183.3 kB / 1.1 GB, free: 362.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/2.808, allocations: 9.74 MB / 1.109 GB, free: 353.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/2.808, allocations: 1.053 MB / 1.11 GB, free: 352.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005045/2.809, allocations: 152.7 kB / 1.11 GB, free: 351.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/2.809, allocations: 399.3 kB / 1.111 GB, free: 351.6 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/2.809, allocations: 0 / 1.111 GB, free: 351.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.569/9.378, allocations: 71.52 MB / 1.18 GB, free: 281.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/9.378, allocations: 293.7 kB / 1.181 GB, free: 280.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/16.98, allocations: 1.969 kB / 1.181 GB, free: 280.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestTank_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestTank.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe 2>&1)