Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.001061/0.001061, allocations: 182.6 kB / 16.39 MB, free: 5.742 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.437/1.437, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.000889/0.000889, allocations: 107.8 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.423/0.423, allocations: 48.78 MB / 367.9 MB, free: 47.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003665, allocations: 8 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1203, allocations: 60.24 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3245/0.4448, allocations: 86.81 MB / 0.5721 GB, free: 11.76 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.4451, allocations: 72.53 kB / 0.5721 GB, free: 11.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.4584, allocations: 5.48 MB / 0.5775 GB, free: 6.273 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.679e-06/0.4584, allocations: 0 / 0.5775 GB, free: 6.273 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.373e-05/0.4585, allocations: 10.19 kB / 0.5775 GB, free: 6.266 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009131/0.4594, allocations: 0.6239 MB / 0.5781 GB, free: 5.594 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.4594, allocations: 14.28 kB / 0.5781 GB, free: 5.582 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.042e-05/0.4595, allocations: 54.53 kB / 0.5782 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.4596, allocations: 39.53 kB / 0.5782 GB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.46, allocations: 324.1 kB / 0.5785 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.46, allocations: 16.44 kB / 0.5785 GB, free: 5.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.4601, allocations: 37.09 kB / 0.5786 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003981/0.4605, allocations: 244.4 kB / 0.5788 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.4605, allocations: 3.938 kB / 0.5788 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.4606, allocations: 8 kB / 0.5788 GB, free: 4.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.4606, allocations: 11.95 kB / 0.5788 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003741/0.461, allocations: 185.6 kB / 0.579 GB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009244/0.4619, allocations: 0.8477 MB / 0.5798 GB, free: 3.711 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.4622, allocations: 202.5 kB / 0.58 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.4622, allocations: 8.219 kB / 0.58 GB, free: 3.496 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.4622, allocations: 30.56 kB / 0.5801 GB, free: 3.457 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.4622, allocations: 3.938 kB / 0.5801 GB, free: 3.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.001567/0.4638, allocations: 0.9179 MB / 0.581 GB, free: 2.465 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.4639, allocations: 55.64 kB / 0.581 GB, free: 2.398 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.4641, allocations: 263.7 kB / 0.5813 GB, free: 2.137 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.4641, allocations: 37.7 kB / 0.5813 GB, free: 2.094 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.958e-05/0.4642, allocations: 180.6 kB / 0.5815 GB, free: 1.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.049e-05/0.4643, allocations: 102.5 kB / 0.5816 GB, free: 1.809 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.052e-05/0.4643, allocations: 4 kB / 0.5816 GB, free: 1.805 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.4644, allocations: 342.8 kB / 0.5819 GB, free: 1.461 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.4645, allocations: 86.58 kB / 0.582 GB, free: 1.379 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.4647, allocations: 116.2 kB / 0.5821 GB, free: 1.254 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.4649, allocations: 101.4 kB / 0.5822 GB, free: 1.156 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4649, allocations: 0 / 0.5822 GB, free: 1.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006106/0.4655, allocations: 348.1 kB / 0.5825 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4655, allocations: 7.953 kB / 0.5825 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4655, allocations: 4 kB / 0.5825 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.4659, allocations: 80.73 kB / 0.5826 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/0.4663, allocations: 76 kB / 0.5827 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.4677, allocations: 1.944 MB / 0.5846 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.468, allocations: 23.92 kB / 0.5846 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.468, allocations: 8 kB / 0.5846 GB, free: 14.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * 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): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.4682, allocations: 150 kB / 0.5848 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.4682, allocations: 31.62 kB / 0.5848 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005001/0.4687, allocations: 285.3 kB / 0.5851 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.4688, allocations: 4.094 kB / 0.5851 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.4688, allocations: 4.688 kB / 0.5851 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4688, allocations: 0 / 0.5851 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.4699, allocations: 0.7151 MB / 0.5858 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.4699, allocations: 0 / 0.5858 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.4702, allocations: 79.89 kB / 0.5858 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4702, allocations: 0 / 0.5858 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.4703, allocations: 5.562 kB / 0.5858 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.4703, allocations: 7.938 kB / 0.5859 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4703, allocations: 0 / 0.5859 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000692/0.471, allocations: 482.9 kB / 0.5863 GB, free: 12.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.4711, allocations: 120.8 kB / 0.5864 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.4712, allocations: 4 kB / 0.5864 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.4714, allocations: 15.98 kB / 0.5864 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.4715, allocations: 27.89 kB / 0.5865 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4715, allocations: 8 kB / 0.5865 GB, free: 12.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002173/0.4717, allocations: 215.1 kB / 0.5867 GB, free: 12.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4717, allocations: 0 / 0.5867 GB, free: 12.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003382/0.4721, allocations: 76 kB / 0.5868 GB, free: 12.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * 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 (30): * Single equations (assignments): 30 * 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.001139/0.4732, allocations: 1.009 MB / 0.5877 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007249/0.4739, allocations: 268.5 kB / 0.588 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.474, allocations: 0 / 0.588 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.4742, allocations: 123.8 kB / 0.5881 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.4747, allocations: 48.34 kB / 0.5882 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.48, allocations: 2.592 MB / 0.5907 GB, free: 8.102 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.4805, allocations: 0.799 MB / 0.5915 GB, free: 7.277 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.4806, allocations: 31.75 kB / 0.5915 GB, free: 7.246 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.4808, allocations: 119.4 kB / 0.5916 GB, free: 7.129 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4808, allocations: 0 / 0.5916 GB, free: 7.129 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.5078, allocations: 6.353 MB / 0.5978 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.508, allocations: 209.4 kB / 0.598 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.621, allocations: 5.406 kB / 0.598 GB, free: 0.6328 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)