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.0007985/0.0007985, allocations: 92.31 kB / 16.65 MB, free: 6.535 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.0008805/0.0008805, allocations: 174.3 kB / 17.56 MB, free: 6.184 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.137/1.137, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2285/0.2285, allocations: 48.79 MB / 320.8 MB, free: 11.11 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.0004504/0.0004505, allocations: 13 kB / 391.9 MB, free: 50.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0728/0.07326, allocations: 60.27 MB / 452.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002008/0.0753, allocations: 1.99 MB / 454.2 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009426/0.07626, allocations: 0.6398 MB / 454.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.07639, allocations: 7.938 kB / 454.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.0765, allocations: 15.84 kB / 454.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.07669, allocations: 55.55 kB / 454.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001172/0.07682, allocations: 47.95 kB / 454.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.07705, allocations: 238.9 kB / 455.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.07718, allocations: 52.84 kB / 455.2 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.07732, allocations: 83.52 kB / 455.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.07745, allocations: 91.55 kB / 455.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.07748, allocations: 8 kB / 455.4 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.746e-05/0.07753, allocations: 15.94 kB / 455.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.057e-05/0.07757, allocations: 31.84 kB / 455.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.078e-05/0.07767, allocations: 121.1 kB / 455.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.07786, allocations: 187.2 kB / 455.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.07787, allocations: 0 / 455.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.07788, allocations: 0 / 455.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.07789, allocations: 3.938 kB / 455.7 MB, free: 5.465 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.0006701/0.07856, allocations: 0.5024 MB / 456.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.0786, allocations: 8.031 kB / 456.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.07865, allocations: 46.73 kB / 456.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.07873, allocations: 24.66 kB / 456.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.07899, allocations: 258.8 kB / 456.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.07901, allocations: 8.375 kB / 456.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.07905, allocations: 16.38 kB / 456.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.07932, allocations: 171.4 kB / 456.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.07934, allocations: 3.938 kB / 456.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.07936, allocations: 4 kB / 456.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.07937, allocations: 4 kB / 456.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.07961, allocations: 115.9 kB / 456.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007443/0.08036, allocations: 0.6036 MB / 457.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.08063, allocations: 142.5 kB / 457.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.08079, allocations: 72.83 kB / 457.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.08081, allocations: 4.281 kB / 457.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.08083, allocations: 38.5 kB / 457.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.08084, allocations: 0 / 457.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009357/0.08178, allocations: 0.565 MB / 458.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.08182, allocations: 55.31 kB / 458.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.08201, allocations: 229 kB / 458.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.08204, allocations: 29.7 kB / 458.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.08212, allocations: 144.4 kB / 458.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/0.08216, allocations: 67.09 kB / 458.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.0822, allocations: 21.7 kB / 458.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.0823, allocations: 334.8 kB / 459.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.08242, allocations: 55.97 kB / 459.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.08255, allocations: 78.55 kB / 459.3 MB, free: 1.609 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.001062/0.08362, allocations: 449.7 kB / 459.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.08363, allocations: 0 / 459.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003218/0.08396, allocations: 197.2 kB / 459.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.08398, allocations: 8 kB / 460 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.08399, allocations: 4 kB / 460 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.08401, allocations: 0 / 460 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.08425, allocations: 63.95 kB / 460 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.08426, allocations: 0 / 460 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.08438, allocations: 8 kB / 460 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.0844, allocations: 11.98 kB / 460 MB, free: 0.8516 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 sytem: 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.0001062/0.08452, allocations: 138 kB / 460.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.08456, allocations: 27.66 kB / 460.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.064e-05/0.08462, allocations: 22.19 kB / 460.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.08463, allocations: 11.92 kB / 460.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.08464, allocations: 0 / 460.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.08465, allocations: 0 / 460.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006118/0.08526, allocations: 0.5325 MB / 460.8 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.08528, allocations: 4 kB / 460.8 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.08551, allocations: 51.91 kB / 460.8 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.08553, allocations: 0 / 460.8 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.08554, allocations: 7.938 kB / 460.8 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.08555, allocations: 4 kB / 460.8 MB, free: 0 / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.08557, allocations: 4.047 kB / 460.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004473/0.08602, allocations: 343 kB / 461.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.881e-05/0.0861, allocations: 108.9 kB / 461.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.08614, allocations: 4 kB / 461.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.08627, allocations: 11.98 kB / 461.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.08632, allocations: 11.98 kB / 461.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.08633, allocations: 7.938 kB / 461.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001296/0.08647, allocations: 164.5 kB / 461.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08647, allocations: 0 / 461.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000246/0.08672, allocations: 40 kB / 461.5 MB, free: 15.28 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.0006545/0.08738, allocations: 0.8723 MB / 462.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003004/0.08769, allocations: 146.6 kB / 462.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.08771, allocations: 0 / 462.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.08784, allocations: 71.97 kB / 462.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.0882, allocations: 44.3 kB / 462.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.0909, allocations: 2.609 MB / 465.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.09117, allocations: 0.7398 MB / 466 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.877e-05/0.09125, allocations: 17.55 kB / 466 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.09136, allocations: 67.41 kB / 466.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09137, allocations: 0 / 466.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.1038, allocations: 3.903 MB / 470 MB, free: 6.652 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.1041, allocations: 206.2 kB / 470.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/1.657, allocations: 0 / 470.2 MB, free: 6.391 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)