Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",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.0008578/0.0008578, allocations: 87.7 kB / 16.31 MB, free: 6.449 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.001039/0.001039, allocations: 178.7 kB / 17.21 MB, free: 6.32 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.52/1.52, allocations: 205.4 MB / 223.4 MB, free: 5.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4199/0.4199, allocations: 48.77 MB / 320.4 MB, free: 3.812 MB / 254.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.000518/0.000518, allocations: 16 kB / 391.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1324, allocations: 60.26 MB / 451.5 MB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.2415/0.374, allocations: 30.24 MB / 481.8 MB, free: 31.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008142/0.3822, allocations: 7.591 MB / 489.4 MB, free: 26.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005652/0.3828, allocations: 5.094 kB / 489.4 MB, free: 26.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005157/0.3834, allocations: 99.53 kB / 489.5 MB, free: 26.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006245/0.384, allocations: 217.1 kB / 489.7 MB, free: 25.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01291/0.3969, allocations: 3.362 MB / 493 MB, free: 24.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.398, allocations: 0.6664 MB / 493.7 MB, free: 24.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.3985, allocations: 169.9 kB / 493.9 MB, free: 24.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003438/0.3988, allocations: 186.2 kB / 494 MB, free: 24.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.3991, allocations: 210.6 kB / 494.3 MB, free: 24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.788e-05/0.3992, allocations: 13.38 kB / 494.3 MB, free: 24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01278/0.412, allocations: 5.733 MB / 0.4883 GB, free: 21.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.4122, allocations: 52.53 kB / 0.4883 GB, free: 21.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.4124, allocations: 91.33 kB / 0.4884 GB, free: 21.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005012/0.4174, allocations: 2.323 MB / 0.4907 GB, free: 20.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4174, allocations: 0 / 0.4907 GB, free: 20.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4175, allocations: 0 / 0.4907 GB, free: 20.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.4175, allocations: 0 / 0.4907 GB, free: 20.39 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002981/0.4205, allocations: 1.007 MB / 0.4917 GB, free: 19.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.4205, allocations: 8.812 kB / 0.4917 GB, free: 19.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.016e-05/0.4206, allocations: 70.58 kB / 0.4917 GB, free: 19.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4207, allocations: 57.17 kB / 0.4918 GB, free: 19.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.4211, allocations: 285.7 kB / 0.4921 GB, free: 19.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.4211, allocations: 18.97 kB / 0.4921 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.4212, allocations: 29.94 kB / 0.4921 GB, free: 19.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.4217, allocations: 336.5 kB / 0.4924 GB, free: 19.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4218, allocations: 0 / 0.4924 GB, free: 19.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.4218, allocations: 10.28 kB / 0.4925 GB, free: 19.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.4218, allocations: 10.61 kB / 0.4925 GB, free: 19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005481/0.4224, allocations: 260 kB / 0.4927 GB, free: 18.89 MB / 382.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.001218/0.4236, allocations: 1.328 MB / 0.494 GB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000488/0.4241, allocations: 236.1 kB / 0.4942 GB, free: 17.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.4243, allocations: 136.1 kB / 0.4944 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05619/0.4805, allocations: 32.28 MB / 0.5259 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.4806, allocations: 38.55 kB / 0.5259 GB, free: 2.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.044e-06/0.4806, allocations: 0 / 0.5259 GB, free: 2.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002673/0.4833, allocations: 1.096 MB / 0.527 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.4834, allocations: 55.41 kB / 0.527 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.4837, allocations: 305.7 kB / 0.5273 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.4837, allocations: 33.7 kB / 0.5274 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.4838, allocations: 180.7 kB / 0.5275 GB, free: 384 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.915e-05/0.4839, allocations: 98.5 kB / 0.5276 GB, free: 284 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.4839, allocations: 4 kB / 0.5276 GB, free: 280 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4841, allocations: 346.8 kB / 0.528 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.4843, allocations: 116 kB / 0.5281 GB, free: 15.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.4846, allocations: 137.6 kB / 0.5282 GB, free: 15.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.4848, allocations: 124 kB / 0.5283 GB, free: 15.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4848, allocations: 3.953 kB / 0.5283 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007818/0.4856, allocations: 434.5 kB / 0.5287 GB, free: 15.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.966e-05/0.4857, allocations: 105.9 kB / 0.5288 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4857, allocations: 0 / 0.5288 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.4868, allocations: 260.5 kB / 0.5291 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.4869, allocations: 43.91 kB / 0.5291 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009294/0.4879, allocations: 0.8047 MB / 0.5299 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.4881, allocations: 27.95 kB / 0.5299 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.4882, allocations: 12 kB / 0.53 GB, free: 13.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.4882, allocations: 4 kB / 0.53 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006697/0.4889, allocations: 356.6 kB / 0.5303 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-06/0.4889, allocations: 4.031 kB / 0.5303 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009208/0.4898, allocations: 248.6 kB / 0.5305 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.49, allocations: 41.28 kB / 0.5306 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007876/0.4907, allocations: 0.7867 MB / 0.5314 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.491, allocations: 31.95 kB / 0.5314 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.491, allocations: 12 kB / 0.5314 GB, free: 12.33 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Accumulator1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001793/0.4912, allocations: 217 kB / 0.5316 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.637e-05/0.4913, allocations: 31.62 kB / 0.5316 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009511/0.4922, allocations: 0.5778 MB / 0.5322 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.4923, allocations: 11.98 kB / 0.5322 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.4923, allocations: 0 / 0.5322 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4923, allocations: 0 / 0.5322 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.4937, allocations: 1.068 MB / 0.5333 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4937, allocations: 0 / 0.5333 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.4941, allocations: 71.95 kB / 0.5333 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002406/0.4943, allocations: 56.8 kB / 0.5334 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.4944, allocations: 7.938 kB / 0.5334 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.4954, allocations: 1.34 MB / 0.5347 GB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4954, allocations: 0 / 0.5347 GB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.4966, allocations: 0.7171 MB / 0.5354 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.4967, allocations: 128.7 kB / 0.5355 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.4968, allocations: 4 kB / 0.5355 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.497, allocations: 31.97 kB / 0.5355 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.4971, allocations: 31.91 kB / 0.5356 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.4971, allocations: 5.062 kB / 0.5356 GB, free: 7.793 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001966/0.4973, allocations: 223.2 kB / 0.5358 GB, free: 7.582 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4973, allocations: 0 / 0.5358 GB, free: 7.582 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003144/0.5005, allocations: 0.8707 MB / 0.5366 GB, free: 6.711 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Accumulator1.zl,Accumulator1.hl,Accumulator1.Mg,Accumulator1.Tg) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005801/0.5063, allocations: 2.096 MB / 0.5387 GB, free: 4.586 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.5079, allocations: 0.6101 MB / 0.5393 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.508, allocations: 0 / 0.5393 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.5085, allocations: 342.4 kB / 0.5396 GB, free: 3.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009186/0.5094, allocations: 160.6 kB / 0.5398 GB, free: 3.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.5147, allocations: 2.861 MB / 0.5426 GB, free: 0.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.5151, allocations: 0.8002 MB / 0.5433 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.5153, allocations: 40.36 kB / 0.5434 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.5155, allocations: 123.4 kB / 0.5435 GB, free: 15.6 MB / 430.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5155, allocations: 0 / 0.5435 GB, free: 15.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0619/0.5774, allocations: 38.49 MB / 0.5811 GB, free: 9.113 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004252/0.5779, allocations: 218.2 kB / 0.5813 GB, free: 8.867 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.855/4.433, allocations: 0 / 0.5813 GB, free: 8.867 MB / 462.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1) Environment - environmentSimulation: