Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestTank,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7682/0.7682, allocations: 150.8 MB / 166.1 MB, free: 15.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.729e-05/1.732e-05, allocations: 4 kB / 204.8 MB, free: 10.11 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.139, allocations: 31.99 MB / 236.8 MB, free: 5.379 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.Examples.SimpleExamples.TestTank): time 1.469/1.608, allocations: 296.8 MB / 0.5211 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1736/1.781, allocations: 186.2 MB / 0.7029 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002919/1.782, allocations: 8 kB / 0.7029 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003999/1.782, allocations: 147.1 kB / 0.703 GB, free: 436 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004798/1.783, allocations: 266 kB / 0.7033 GB, free: 168 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2816/2.064, allocations: 9.09 MB / 0.7122 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001219/2.065, allocations: 1.119 MB / 0.7133 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005584/2.066, allocations: 382.2 kB / 0.7136 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006727/2.067, allocations: 402 kB / 0.714 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006176/2.067, allocations: 404.2 kB / 0.7144 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001406/2.068, allocations: 34.94 kB / 0.7144 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03119/2.099, allocations: 20.18 MB / 0.7341 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002112/2.099, allocations: 139.2 kB / 0.7343 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005273/2.099, allocations: 441 kB / 0.7347 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01915/2.119, allocations: 10.33 MB / 0.7448 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/2.119, allocations: 0 / 0.7448 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.663e-06/2.119, allocations: 3.75 kB / 0.7448 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.716e-06/2.119, allocations: 0 / 0.7448 GB, free: 15.65 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00603/2.125, allocations: 2.315 MB / 0.747 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/2.125, allocations: 12.44 kB / 0.7471 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/2.125, allocations: 133.2 kB / 0.7472 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/2.125, allocations: 96.81 kB / 0.7473 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/2.125, allocations: 443.2 kB / 0.7477 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.27e-05/2.126, allocations: 84.25 kB / 0.7478 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/2.126, allocations: 66.59 kB / 0.7478 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/2.127, allocations: 1.006 MB / 0.7488 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/2.127, allocations: 2.938 kB / 0.7488 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.456e-05/2.127, allocations: 27.62 kB / 0.7489 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.523e-05/2.127, allocations: 40.09 kB / 0.7489 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/2.129, allocations: 0.8833 MB / 0.7498 GB, free: 13.19 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.05253/2.182, allocations: 29.95 MB / 0.779 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/2.184, allocations: 0.854 MB / 0.7798 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009662/2.185, allocations: 457.2 kB / 0.7803 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2827/2.468, allocations: 151.8 MB / 0.9285 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/2.468, allocations: 42.59 kB / 0.9285 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=110): time 1.943e-06/2.468, allocations: 0 / 0.9285 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=110): time 0.007467/2.475, allocations: 2.493 MB / 0.931 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/2.476, allocations: 59.78 kB / 0.931 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/2.476, allocations: 0.5011 MB / 0.9315 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/2.476, allocations: 33.27 kB / 0.9315 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/2.476, allocations: 324.5 kB / 0.9318 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000234/2.477, allocations: 368.2 kB / 0.9322 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/2.477, allocations: 87.09 kB / 0.9323 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001283/2.477, allocations: 392 kB / 0.9326 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000945/2.478, allocations: 388 kB / 0.933 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/2.479, allocations: 0.551 MB / 0.9336 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/2.481, allocations: 0.9907 MB / 0.9345 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/2.481, allocations: 4 kB / 0.9345 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002957/2.484, allocations: 1.334 MB / 0.9358 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/2.484, allocations: 14.06 kB / 0.9358 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/2.484, allocations: 6.906 kB / 0.9358 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004534/2.488, allocations: 1.118 MB / 0.9369 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/2.489, allocations: 190.8 kB / 0.9371 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/2.491, allocations: 2.707 MB / 0.9398 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007384/2.492, allocations: 157.8 kB / 0.9399 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/2.492, allocations: 27.8 kB / 0.9399 GB, free: 5.547 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,PerteDP2.C2.b,PerteDP2.C1.a,Tank1.Cs1.b,Tank1.Ce2.a,Tank1.Cs2.b,Tank1.Ce1.a,PuitsP1.C.a,SourceP1.C.b,VanneReglante1.C2.b,VanneReglante1.C1.a,PerteDP1.C2.b,PerteDP1.C1.a,Tank1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,7), (2,6), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002564/2.492, allocations: 204.5 kB / 0.9401 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/2.493, allocations: 74.97 kB / 0.9402 GB, free: 5.316 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004243/2.497, allocations: 2.993 MB / 0.9431 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002934/2.5, allocations: 1.339 MB / 0.9444 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/2.5, allocations: 0 / 0.9444 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/2.5, allocations: 3.984 kB / 0.9444 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005149/2.505, allocations: 2.877 MB / 0.9473 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/2.505, allocations: 0 / 0.9473 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009166/2.506, allocations: 213.7 kB / 0.9475 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00311/2.509, allocations: 0.9527 MB / 0.9484 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.443e-05/2.509, allocations: 20 kB / 0.9484 GB, free: 14.51 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/2.511, allocations: 2.803 MB / 0.9511 GB, free: 11.62 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/2.511, allocations: 0 / 0.9511 GB, free: 11.62 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004195/2.515, allocations: 2.042 MB / 0.9531 GB, free: 9.559 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/2.516, allocations: 271.5 kB / 0.9534 GB, free: 9.273 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.877e-05/2.516, allocations: 16 kB / 0.9534 GB, free: 9.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/2.517, allocations: 87.84 kB / 0.9535 GB, free: 9.172 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/2.517, allocations: 64.89 kB / 0.9536 GB, free: 9.109 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/2.517, allocations: 32 kB / 0.9536 GB, free: 9.078 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004655/2.517, allocations: 459 kB / 0.954 GB, free: 8.629 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.1e-07/2.517, allocations: 0 / 0.954 GB, free: 8.629 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003792/2.521, allocations: 1.635 MB / 0.9556 GB, free: 6.992 MB / 0.795 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 (64): * Single equations (assignments): 60 * 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.0121/2.533, allocations: 4.827 MB / 0.9603 GB, free: 2.422 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003115/2.536, allocations: 1.31 MB / 0.9616 GB, free: 1.105 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/2.536, allocations: 0 / 0.9616 GB, free: 1.105 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/2.538, allocations: 0.6866 MB / 0.9623 GB, free: 440 kB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/2.54, allocations: 334.8 kB / 0.9626 GB, free: 108 kB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/2.554, allocations: 8.62 MB / 0.971 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000518/2.554, allocations: 1.022 MB / 0.972 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003848/2.555, allocations: 93.16 kB / 0.9721 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/2.555, allocations: 375.3 kB / 0.9725 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/2.555, allocations: 0 / 0.9725 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.929/4.484, allocations: 70.06 MB / 1.041 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.5475/5.031, allocations: 261.8 kB / 1.041 GB, free: 422.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.479/9.51, allocations: 0 / 1.041 GB, free: 422.4 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestTank_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestTank.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe 2>&1)