Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.0009159/0.0009196, allocations: 103.8 kB / 16.92 MB, free: 5.793 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.0008603/0.0008604, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.095/1.095, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2256/0.2256, allocations: 48.85 MB / 319.9 MB, free: 11.1 MB / 270.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.001405/0.001405, allocations: 69.98 kB / 390.2 MB, free: 48.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08205, allocations: 59.16 MB / 449.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003341/0.08543, allocations: 2.178 MB / 451.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.08658, allocations: 0.6319 MB / 452.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.08674, allocations: 4 kB / 452.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.08691, allocations: 27.67 kB / 452.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.08714, allocations: 71.39 kB / 452.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001523/0.08731, allocations: 51.94 kB / 452.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002628/0.08758, allocations: 242.9 kB / 452.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.08773, allocations: 56.64 kB / 452.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.0879, allocations: 95.58 kB / 452.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.08806, allocations: 111.4 kB / 452.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.0881, allocations: 16 kB / 452.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.545e-05/0.08817, allocations: 20 kB / 452.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.08822, allocations: 35.84 kB / 452.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.86e-05/0.08833, allocations: 107.3 kB / 453 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.08856, allocations: 199.3 kB / 453.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.08857, allocations: 0 / 453.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.08858, allocations: 0 / 453.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.08859, allocations: 3.938 kB / 453.2 MB, free: 5.812 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000814/0.08941, allocations: 0.5295 MB / 453.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.08946, allocations: 11.89 kB / 453.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.08951, allocations: 42.75 kB / 453.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.95e-05/0.08961, allocations: 24.66 kB / 453.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.08988, allocations: 258.8 kB / 454 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.0899, allocations: 8.375 kB / 454 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.08994, allocations: 24.36 kB / 454.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002768/0.09022, allocations: 155.4 kB / 454.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.09026, allocations: 3.984 kB / 454.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.09028, allocations: 7.938 kB / 454.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.09029, allocations: 4 kB / 454.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.09052, allocations: 99.94 kB / 454.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008155/0.09135, allocations: 0.6152 MB / 454.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.0916, allocations: 126.6 kB / 455.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.09174, allocations: 68.83 kB / 455.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.09176, allocations: 288 / 455.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.09179, allocations: 42.44 kB / 455.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.22e-07/0.0918, allocations: 0 / 455.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001023/0.09283, allocations: 0.5541 MB / 455.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.09287, allocations: 55.41 kB / 455.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.0931, allocations: 225 kB / 456 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.09312, allocations: 25.7 kB / 456 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.09321, allocations: 140.3 kB / 456.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.09326, allocations: 71.08 kB / 456.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.09334, allocations: 45.7 kB / 456.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.09345, allocations: 326.8 kB / 456.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.09357, allocations: 51.97 kB / 456.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.0937, allocations: 78.39 kB / 456.7 MB, free: 1.965 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.1591549430918953 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.09486, allocations: 422.3 kB / 457.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.09487, allocations: 4 kB / 457.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003307/0.09521, allocations: 193.2 kB / 457.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.09523, allocations: 8.031 kB / 457.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.09525, allocations: 0 / 457.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.09526, allocations: 4 kB / 457.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.09552, allocations: 55.91 kB / 457.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.09553, allocations: 0 / 457.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.09566, allocations: 15.98 kB / 457.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.09568, allocations: 8 kB / 457.4 MB, free: 1.238 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.0958, allocations: 133.8 kB / 457.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.852e-05/0.09585, allocations: 27.66 kB / 457.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.141e-05/0.09591, allocations: 30.17 kB / 457.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.09592, allocations: 3.938 kB / 457.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.09593, allocations: 0 / 457.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.09594, allocations: 0 / 457.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006549/0.09659, allocations: 0.5208 MB / 458.1 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.09661, allocations: 4 kB / 458.1 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002497/0.09687, allocations: 51.97 kB / 458.2 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.09688, allocations: 4.031 kB / 458.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.0969, allocations: 4 kB / 458.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.09691, allocations: 3.984 kB / 458.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.09691, allocations: 0 / 458.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000466/0.09738, allocations: 335 kB / 458.5 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.0975, allocations: 112.8 kB / 458.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.09753, allocations: 4 kB / 458.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.09768, allocations: 4 kB / 458.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.09773, allocations: 11.98 kB / 458.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.09775, allocations: 11.94 kB / 458.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001423/0.0979, allocations: 168.4 kB / 458.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09791, allocations: 0 / 458.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.09818, allocations: 40 kB / 458.9 MB, free: 15.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006954/0.09888, allocations: 0.8605 MB / 459.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003353/0.09923, allocations: 144.9 kB / 459.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.09924, allocations: 0 / 459.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.09938, allocations: 71.91 kB / 459.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.09975, allocations: 40.3 kB / 460 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.1027, allocations: 2.446 MB / 462.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.103, allocations: 0.7398 MB / 463.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.7e-05/0.1031, allocations: 17.53 kB / 463.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1032, allocations: 63.41 kB / 463.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1032, allocations: 7.938 kB / 463.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.571/3.674, allocations: 4.234 MB / 467.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/11.31, allocations: 0 / 467.5 MB, free: 6.863 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)