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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9448/0.9448, allocations: 150.8 MB / 166.1 MB, free: 15.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.176e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2148, allocations: 31.98 MB / 236.8 MB, free: 5.445 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.84/2.055, allocations: 296.5 MB / 0.5208 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6982/2.753, allocations: 195.2 MB / 0.7114 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/2.754, allocations: 16.56 kB / 0.7114 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004302/2.755, allocations: 110 kB / 0.7115 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001088/2.756, allocations: 349.2 kB / 0.7118 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04325/2.799, allocations: 11.21 MB / 0.7228 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00268/2.802, allocations: 1.529 MB / 0.7243 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009352/2.803, allocations: 0.6424 MB / 0.7249 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008286/2.804, allocations: 0.515 MB / 0.7254 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000671/2.804, allocations: 0.6049 MB / 0.726 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/2.804, allocations: 63.81 kB / 0.7261 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05072/2.855, allocations: 22.76 MB / 0.7483 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005204/2.856, allocations: 256.7 kB / 0.7485 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001116/2.857, allocations: 0.6242 MB / 0.7491 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04147/2.898, allocations: 12.41 MB / 0.7613 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/2.898, allocations: 3.938 kB / 0.7613 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.144e-06/2.898, allocations: 0 / 0.7613 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.303e-05/2.898, allocations: 3.156 kB / 0.7613 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.01047/2.909, allocations: 2.932 MB / 0.7641 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/2.909, allocations: 8.656 kB / 0.7641 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004754/2.91, allocations: 157.6 kB / 0.7643 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/2.911, allocations: 0.6261 MB / 0.7649 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/2.911, allocations: 130.9 kB / 0.765 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003796/2.912, allocations: 124.2 kB / 0.7651 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002928/2.914, allocations: 1.485 MB / 0.7666 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/2.914, allocations: 4.781 kB / 0.7666 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/2.915, allocations: 57 kB / 0.7667 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.525e-05/2.915, allocations: 34.72 kB / 0.7667 GB, free: 9.52 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/2.917, allocations: 1.371 MB / 0.768 GB, free: 9.285 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.02835/2.946, allocations: 20.11 MB / 0.7877 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/2.949, allocations: 1.035 MB / 0.7887 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009877/2.95, allocations: 380 kB / 0.789 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8481/3.798, allocations: 286.5 MB / 1.069 GB, free: 389.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/3.798, allocations: 45.23 kB / 1.069 GB, free: 389.1 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=58): time 3.046e-06/3.798, allocations: 0 / 1.069 GB, free: 389.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=58): time 0.007173/3.805, allocations: 2.065 MB / 1.071 GB, free: 387.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/3.805, allocations: 81.67 kB / 1.071 GB, free: 387.2 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/3.806, allocations: 0.7974 MB / 1.072 GB, free: 386.6 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/3.806, allocations: 33.08 kB / 1.072 GB, free: 386.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/3.807, allocations: 0.5965 MB / 1.072 GB, free: 386.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/3.807, allocations: 219.2 kB / 1.073 GB, free: 386 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/3.807, allocations: 108.4 kB / 1.073 GB, free: 385.9 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000113/3.807, allocations: 387 kB / 1.073 GB, free: 385.6 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/3.808, allocations: 391.3 kB / 1.073 GB, free: 385.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/3.809, allocations: 0.7788 MB / 1.074 GB, free: 384.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/3.811, allocations: 1.201 MB / 1.075 GB, free: 383.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/3.811, allocations: 4 kB / 1.075 GB, free: 383.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003396/3.815, allocations: 1.467 MB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/3.815, allocations: 8 kB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/3.815, allocations: 16.62 kB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005266/3.82, allocations: 1.033 MB / 1.078 GB, free: 381.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008696/3.821, allocations: 236.5 kB / 1.078 GB, free: 380.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/3.823, allocations: 1.066 MB / 1.079 GB, free: 380 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/3.824, allocations: 185.8 kB / 1.079 GB, free: 379.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/3.824, allocations: 62.98 kB / 1.079 GB, free: 379.8 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.0005439/3.825, allocations: 280.2 kB / 1.08 GB, free: 379.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/3.825, allocations: 90.88 kB / 1.08 GB, free: 379.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/3.828, allocations: 1.206 MB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/3.828, allocations: 4 kB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/3.828, allocations: 4 kB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/3.828, allocations: 11.92 kB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/3.833, allocations: 2.178 MB / 1.083 GB, free: 376.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/3.833, allocations: 0.5625 kB / 1.083 GB, free: 376.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008882/3.834, allocations: 179.7 kB / 1.083 GB, free: 376.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003128/3.837, allocations: 0.6504 MB / 1.084 GB, free: 376 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/3.837, allocations: 23.61 kB / 1.084 GB, free: 376 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/3.838, allocations: 2.51 MB / 1.086 GB, free: 373.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/3.838, allocations: 0 / 1.086 GB, free: 373.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003901/3.842, allocations: 1.596 MB / 1.088 GB, free: 372.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004562/3.843, allocations: 258.8 kB / 1.088 GB, free: 372 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/3.843, allocations: 8.812 kB / 1.088 GB, free: 372 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007411/3.844, allocations: 75.8 kB / 1.088 GB, free: 372 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/3.844, allocations: 56.3 kB / 1.088 GB, free: 371.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-05/3.844, allocations: 23.92 kB / 1.088 GB, free: 371.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000659/3.845, allocations: 0.5066 MB / 1.089 GB, free: 371.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/3.845, allocations: 4 kB / 1.089 GB, free: 371.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006334/3.851, allocations: 2.015 MB / 1.091 GB, free: 369.9 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.01008/3.861, allocations: 2.923 MB / 1.094 GB, free: 367.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003177/3.864, allocations: 1.036 MB / 1.095 GB, free: 366.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/3.864, allocations: 4 kB / 1.095 GB, free: 366.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001501/3.866, allocations: 499.8 kB / 1.095 GB, free: 366.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/3.867, allocations: 184.1 kB / 1.095 GB, free: 366.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003549/3.871, allocations: 2.342 MB / 1.097 GB, free: 363.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/3.871, allocations: 1.057 MB / 1.099 GB, free: 362.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000613/3.872, allocations: 148.2 kB / 1.099 GB, free: 362.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/3.872, allocations: 71.23 kB / 1.099 GB, free: 362.7 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/3.872, allocations: 0 / 1.099 GB, free: 362.7 MB / 0.8106 GB Notification: Performance of Templates: time 0.07183/3.944, allocations: 61.13 MB / 1.158 GB, free: 302.3 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe 2>&1) Environment - environmentSimulation: