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.001101/0.001101, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.423/1.423, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0009065/0.0009065, allocations: 78.66 kB / 270.8 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4239/0.4239, allocations: 48.78 MB / 367.9 MB, free: 47.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 12 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1592, allocations: 60.23 MB / 499 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3715/0.5307, allocations: 86.97 MB / 0.5722 GB, free: 11.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.5309, allocations: 79.95 kB / 0.5723 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0101/0.5411, allocations: 3.96 MB / 0.5762 GB, free: 7.645 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5411, allocations: 0 / 0.5762 GB, free: 7.645 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.5411, allocations: 4 kB / 0.5762 GB, free: 7.641 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.0008384/0.542, allocations: 0.5324 MB / 0.5767 GB, free: 7.062 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.542, allocations: 12.03 kB / 0.5767 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.23e-05/0.5421, allocations: 48.73 kB / 0.5767 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.446e-05/0.5422, allocations: 35.56 kB / 0.5768 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.5426, allocations: 265.6 kB / 0.577 GB, free: 6.664 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.777e-05/0.5426, allocations: 44.7 kB / 0.5771 GB, free: 6.617 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.5427, allocations: 27.89 kB / 0.5771 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.543, allocations: 182.5 kB / 0.5773 GB, free: 6.402 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.543, allocations: 0 / 0.5773 GB, free: 6.402 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.5431, allocations: 4 kB / 0.5773 GB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.5431, allocations: 7.953 kB / 0.5773 GB, free: 6.391 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.5434, allocations: 148.3 kB / 0.5774 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008899/0.5443, allocations: 0.6543 MB / 0.5781 GB, free: 5.535 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.5446, allocations: 166.5 kB / 0.5782 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.5447, allocations: 6.297 kB / 0.5782 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.5447, allocations: 34.59 kB / 0.5783 GB, free: 5.316 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.874e-06/0.5447, allocations: 0 / 0.5783 GB, free: 5.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.001381/0.5461, allocations: 0.7426 MB / 0.579 GB, free: 4.504 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.5461, allocations: 55.41 kB / 0.579 GB, free: 4.438 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.5463, allocations: 208.7 kB / 0.5792 GB, free: 4.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.5463, allocations: 33.7 kB / 0.5793 GB, free: 4.191 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.5464, allocations: 148.3 kB / 0.5794 GB, free: 4.043 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.5465, allocations: 63.02 kB / 0.5795 GB, free: 3.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-06/0.5465, allocations: 8 kB / 0.5795 GB, free: 3.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.5465, allocations: 334.8 kB / 0.5798 GB, free: 3.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.5467, allocations: 63.78 kB / 0.5799 GB, free: 3.578 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.5468, allocations: 95.8 kB / 0.5799 GB, free: 3.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.547, allocations: 67.98 kB / 0.58 GB, free: 3.414 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.547, allocations: 0 / 0.58 GB, free: 3.414 MB / 394.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003357/0.5473, allocations: 223 kB / 0.5802 GB, free: 3.191 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5473, allocations: 11.98 kB / 0.5802 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5474, allocations: 0 / 0.5802 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.5474, allocations: 0 / 0.5802 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/0.5478, allocations: 84.45 kB / 0.5803 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.5478, allocations: 4.031 kB / 0.5803 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.5479, allocations: 12.22 kB / 0.5803 GB, free: 3.082 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.548, allocations: 15.94 kB / 0.5803 GB, free: 3.066 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 () * Number of clocked 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 9.895e-05/0.5481, allocations: 137.7 kB / 0.5805 GB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.5481, allocations: 23.72 kB / 0.5805 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003861/0.5485, allocations: 223 kB / 0.5807 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5485, allocations: 3.938 kB / 0.5807 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.5485, allocations: 4 kB / 0.5807 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.5485, allocations: 0 / 0.5807 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006706/0.5492, allocations: 0.5762 MB / 0.5813 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5492, allocations: 0 / 0.5813 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003988/0.5496, allocations: 78.64 kB / 0.5814 GB, free: 1.969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.5497, allocations: 0 / 0.5814 GB, free: 1.969 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.5497, allocations: 0 / 0.5814 GB, free: 1.969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.5497, allocations: 4 kB / 0.5814 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5497, allocations: 11.16 kB / 0.5814 GB, free: 1.957 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004941/0.5502, allocations: 383 kB / 0.5817 GB, free: 1.566 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.913e-05/0.5503, allocations: 112.8 kB / 0.5818 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.5503, allocations: 4 kB / 0.5818 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.5505, allocations: 15.98 kB / 0.5819 GB, free: 1.418 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.5506, allocations: 11.92 kB / 0.5819 GB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.5506, allocations: 15.94 kB / 0.5819 GB, free: 1.391 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.5507, allocations: 168.5 kB / 0.5821 GB, free: 1.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5507, allocations: 4 kB / 0.5821 GB, free: 1.219 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.551, allocations: 52 kB / 0.5821 GB, free: 1.168 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 () * Number of clocked 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.000691/0.5517, allocations: 0.9156 MB / 0.583 GB, free: 232 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.5521, allocations: 172.1 kB / 0.5832 GB, free: 60 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5521, allocations: 0 / 0.5832 GB, free: 60 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.5522, allocations: 83.98 kB / 0.5832 GB, free: 15.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000406/0.5527, allocations: 42.81 kB / 0.5833 GB, free: 15.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.5546, allocations: 1.206 MB / 0.5845 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.555, allocations: 0.7599 MB / 0.5852 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.5552, allocations: 23.61 kB / 0.5852 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.5553, allocations: 75.41 kB / 0.5853 GB, free: 13.8 MB / 410.7 MB Notification: Performance of SimCode: time 6.12e-07/0.5553, allocations: 4 kB / 0.5853 GB, free: 13.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.572, allocations: 4.05 MB / 0.5893 GB, free: 9.855 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.5722, allocations: 189.7 kB / 0.5894 GB, free: 9.605 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.446, allocations: 0 / 0.5894 GB, free: 9.605 MB / 410.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)