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.001401/0.001401, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.001597/0.001597, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.4 MB / 223.4 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6793/0.6793, allocations: 48.78 MB / 320.4 MB, free: 3.82 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.0008135/0.0008136, allocations: 12 kB / 391.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1968, allocations: 60.25 MB / 451.5 MB, free: 1.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.4145/0.6114, allocations: 27.49 MB / 479 MB, free: 33.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.6261, allocations: 7.057 MB / 486 MB, free: 28.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.6274, allocations: 8.438 kB / 486.1 MB, free: 28.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.6286, allocations: 116.1 kB / 486.2 MB, free: 28.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.6299, allocations: 195.8 kB / 486.4 MB, free: 28.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02048/0.6504, allocations: 3.386 MB / 489.7 MB, free: 27.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.6516, allocations: 381.4 kB / 490.1 MB, free: 26.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005118/0.6522, allocations: 177.1 kB / 490.3 MB, free: 26.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004153/0.6526, allocations: 175.3 kB / 490.5 MB, free: 26.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.653, allocations: 167.8 kB / 490.6 MB, free: 26.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.085e-05/0.653, allocations: 13.47 kB / 490.6 MB, free: 26.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02082/0.6739, allocations: 5.856 MB / 496.5 MB, free: 25.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.6741, allocations: 53.27 kB / 496.5 MB, free: 25.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002701/0.6744, allocations: 89.36 kB / 496.6 MB, free: 25.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01069/0.6851, allocations: 2.323 MB / 499 MB, free: 23.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.6852, allocations: 1.062 kB / 499 MB, free: 23.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6852, allocations: 0 / 499 MB, free: 23.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.6852, allocations: 0 / 499 MB, free: 23.73 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.00586/0.6911, allocations: 0.997 MB / 500 MB, free: 22.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.518e-05/0.6912, allocations: 13.84 kB / 500 MB, free: 22.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.6913, allocations: 62.97 kB / 0.4883 GB, free: 22.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.6916, allocations: 53.73 kB / 0.4884 GB, free: 22.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.6921, allocations: 299.8 kB / 0.4886 GB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.6922, allocations: 20.03 kB / 0.4887 GB, free: 22.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.292e-05/0.6923, allocations: 24.72 kB / 0.4887 GB, free: 22.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008888/0.6932, allocations: 326 kB / 0.489 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.6932, allocations: 1.031 kB / 0.489 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.6933, allocations: 6.625 kB / 0.489 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.6933, allocations: 14.2 kB / 0.489 GB, free: 22.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008788/0.6942, allocations: 259.6 kB / 0.4893 GB, free: 22.25 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.002009/0.6962, allocations: 1.33 MB / 0.4906 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.6971, allocations: 236 kB / 0.4908 GB, free: 20.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09494/0.792, allocations: 32.28 MB / 0.5223 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.7922, allocations: 34.56 kB / 0.5224 GB, free: 5.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 4.789e-06/0.7922, allocations: 0 / 0.5224 GB, free: 5.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.004702/0.7969, allocations: 1.096 MB / 0.5234 GB, free: 4.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.7971, allocations: 67.33 kB / 0.5235 GB, free: 4.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006253/0.7977, allocations: 301.7 kB / 0.5238 GB, free: 4.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.7978, allocations: 33.7 kB / 0.5238 GB, free: 4.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.798, allocations: 176.8 kB / 0.524 GB, free: 4.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.7982, allocations: 98.5 kB / 0.5241 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.7982, allocations: 4 kB / 0.5241 GB, free: 4.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002942/0.7985, allocations: 346.8 kB / 0.5244 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/0.799, allocations: 119.9 kB / 0.5245 GB, free: 3.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004438/0.7994, allocations: 137.6 kB / 0.5246 GB, free: 3.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004294/0.7999, allocations: 127.9 kB / 0.5248 GB, free: 3.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.7999, allocations: 0 / 0.5248 GB, free: 3.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001413/0.8013, allocations: 438.4 kB / 0.5252 GB, free: 2.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.8015, allocations: 182 kB / 0.5254 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.8015, allocations: 0 / 0.5254 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001928/0.8035, allocations: 260.5 kB / 0.5256 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.8038, allocations: 40.92 kB / 0.5256 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.8055, allocations: 0.8118 MB / 0.5264 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/0.806, allocations: 31.94 kB / 0.5265 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.8061, allocations: 8 kB / 0.5265 GB, free: 1.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.8061, allocations: 4 kB / 0.5265 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00121/0.8073, allocations: 360.6 kB / 0.5268 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.8074, allocations: 0 / 0.5268 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.809, allocations: 240.7 kB / 0.5271 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.8093, allocations: 36.55 kB / 0.5271 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.8108, allocations: 0.7966 MB / 0.5279 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005015/0.8113, allocations: 31.95 kB / 0.5279 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/0.8114, allocations: 10.19 kB / 0.5279 GB, free: 24 kB / 398.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.0003796/0.8118, allocations: 213.1 kB / 0.5281 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.8119, allocations: 35.58 kB / 0.5281 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.8136, allocations: 0.5785 MB / 0.5287 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.8136, allocations: 4 kB / 0.5287 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.8137, allocations: 0 / 0.5287 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.8137, allocations: 3.984 kB / 0.5287 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.8163, allocations: 1.063 MB / 0.5298 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.8164, allocations: 4 kB / 0.5298 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005655/0.817, allocations: 75.89 kB / 0.5298 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004247/0.8174, allocations: 52.8 kB / 0.5299 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-05/0.8175, allocations: 8 kB / 0.5299 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.8193, allocations: 1.337 MB / 0.5312 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.8193, allocations: 8.016 kB / 0.5312 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.8212, allocations: 0.7093 MB / 0.5319 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.8216, allocations: 132.6 kB / 0.532 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.091e-05/0.8217, allocations: 19.88 kB / 0.532 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004307/0.8221, allocations: 27.94 kB / 0.5321 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.8222, allocations: 27.94 kB / 0.5321 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.8223, allocations: 7.938 kB / 0.5321 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003632/0.8227, allocations: 223.2 kB / 0.5323 GB, free: 11.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8227, allocations: 0 / 0.5323 GB, free: 11.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005461/0.8281, allocations: 0.8707 MB / 0.5332 GB, free: 10.39 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.01209/0.8403, allocations: 2.107 MB / 0.5352 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002928/0.8433, allocations: 0.6062 MB / 0.5358 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.8433, allocations: 4 kB / 0.5358 GB, free: 7.648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009428/0.8443, allocations: 326.5 kB / 0.5361 GB, free: 7.316 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.8458, allocations: 149.8 kB / 0.5363 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.8571, allocations: 3.004 MB / 0.5392 GB, free: 4.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.8578, allocations: 0.8196 MB / 0.54 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003606/0.8581, allocations: 33.11 kB / 0.54 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.8584, allocations: 127.3 kB / 0.5402 GB, free: 3.141 MB / 414.1 MB Notification: Performance of SimCode: time 1.613e-06/0.8585, allocations: 4 kB / 0.5402 GB, free: 3.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/0.9672, allocations: 38.47 MB / 0.5777 GB, free: 12.67 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002856/0.9676, allocations: 213.2 kB / 0.5779 GB, free: 12.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.937/5.904, allocations: 0 / 0.5779 GB, free: 12.43 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: