Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002027/0.002027, allocations: 174.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.2 MB / 219.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008777/0.0008779, allocations: 86.64 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2882/0.2882, allocations: 48.78 MB / 364.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.384e-05, allocations: 0 / 432.6 MB, free: 16.65 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 60.24 MB / 492.8 MB, free: 4.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3663/0.4853, allocations: 87 MB / 0.5662 GB, free: 1.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.4856, allocations: 79.12 kB / 0.5663 GB, free: 1.941 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01097/0.4966, allocations: 3.947 MB / 0.5701 GB, free: 14.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4967, allocations: 0 / 0.5701 GB, free: 14.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.4967, allocations: 4 kB / 0.5701 GB, free: 14.6 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006044/0.4973, allocations: 0.4964 MB / 0.5706 GB, free: 14.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4973, allocations: 8.031 kB / 0.5706 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.121e-05/0.4974, allocations: 48.61 kB / 0.5707 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.4975, allocations: 35.58 kB / 0.5707 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.4978, allocations: 275.9 kB / 0.571 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/0.4979, allocations: 37.58 kB / 0.571 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.498, allocations: 27.28 kB / 0.571 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.4982, allocations: 161.1 kB / 0.5712 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4983, allocations: 0 / 0.5712 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.4983, allocations: 7.938 kB / 0.5712 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4983, allocations: 7.953 kB / 0.5712 GB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.4985, allocations: 99.3 kB / 0.5713 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008624/0.4994, allocations: 0.6629 MB / 0.572 GB, free: 12.81 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.4997, allocations: 147 kB / 0.5721 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.4998, allocations: 71.92 kB / 0.5722 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.4998, allocations: 7.938 kB / 0.5722 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.4999, allocations: 42.53 kB / 0.5722 GB, free: 12.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.4999, allocations: 0 / 0.5722 GB, free: 12.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007846/0.5007, allocations: 0.4924 MB / 0.5727 GB, free: 12.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.5007, allocations: 55.41 kB / 0.5727 GB, free: 12.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.5009, allocations: 206.8 kB / 0.5729 GB, free: 11.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.5009, allocations: 29.7 kB / 0.573 GB, free: 11.85 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.501, allocations: 149.4 kB / 0.5731 GB, free: 11.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.307e-05/0.5011, allocations: 71.11 kB / 0.5732 GB, free: 11.67 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.5011, allocations: 8.375 kB / 0.5732 GB, free: 11.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5012, allocations: 338.6 kB / 0.5735 GB, free: 11.33 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.233e-05/0.5013, allocations: 48.31 kB / 0.5736 GB, free: 11.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.28e-05/0.5014, allocations: 70.09 kB / 0.5736 GB, free: 11.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.261e-05/0.5015, allocations: 51.78 kB / 0.5737 GB, free: 11.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5015, allocations: 0 / 0.5737 GB, free: 11.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002642/0.5018, allocations: 193.8 kB / 0.5739 GB, free: 11.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.5018, allocations: 4 kB / 0.5739 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.5018, allocations: 0 / 0.5739 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5018, allocations: 8.031 kB / 0.5739 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.5022, allocations: 79.89 kB / 0.5739 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.5023, allocations: 0 / 0.5739 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.5024, allocations: 15.48 kB / 0.574 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.5024, allocations: 4 kB / 0.574 GB, free: 10.96 MB / 394.7 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 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.688e-05/0.5025, allocations: 123.6 kB / 0.5741 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.5026, allocations: 19.72 kB / 0.5741 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003163/0.5029, allocations: 187 kB / 0.5743 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.5029, allocations: 4 kB / 0.5743 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5029, allocations: 0 / 0.5743 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.5029, allocations: 3.984 kB / 0.5743 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006475/0.5036, allocations: 0.5434 MB / 0.5748 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5036, allocations: 0 / 0.5748 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.504, allocations: 67.91 kB / 0.5749 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.504, allocations: 0 / 0.5749 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.504, allocations: 7.625 kB / 0.5749 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.504, allocations: 0 / 0.5749 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.504, allocations: 3.938 kB / 0.5749 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.5044, allocations: 332.4 kB / 0.5752 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.542e-05/0.5046, allocations: 116.4 kB / 0.5753 GB, free: 9.688 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.5046, allocations: 0 / 0.5753 GB, free: 9.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.5048, allocations: 19.67 kB / 0.5753 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.5048, allocations: 15.67 kB / 0.5754 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.5048, allocations: 4 kB / 0.5754 GB, free: 9.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00014/0.505, allocations: 172.4 kB / 0.5755 GB, free: 9.512 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.505, allocations: 0 / 0.5755 GB, free: 9.512 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002549/0.5052, allocations: 46.62 kB / 0.5756 GB, free: 9.473 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000634/0.5059, allocations: 0.8914 MB / 0.5764 GB, free: 8.617 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.5061, allocations: 126.8 kB / 0.5766 GB, free: 8.527 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5061, allocations: 0 / 0.5766 GB, free: 8.527 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.867e-05/0.5062, allocations: 68 kB / 0.5766 GB, free: 8.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.5065, allocations: 46.2 kB / 0.5767 GB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.5076, allocations: 0.5807 MB / 0.5772 GB, free: 7.879 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.5079, allocations: 0.7558 MB / 0.578 GB, free: 7.098 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.881e-05/0.508, allocations: 26.06 kB / 0.578 GB, free: 7.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.5081, allocations: 78.91 kB / 0.5781 GB, free: 7.035 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5081, allocations: 0 / 0.5781 GB, free: 7.035 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01394/0.522, allocations: 4.089 MB / 0.5821 GB, free: 2.953 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.5223, allocations: 164.2 kB / 0.5822 GB, free: 2.719 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.356, allocations: 3.938 kB / 0.5822 GB, free: 2.715 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)