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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007929/0.0007929, allocations: 89.69 kB / 16.65 MB, free: 6.598 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.0008646/0.0008646, allocations: 183.1 kB / 17.56 MB, free: 6.203 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.138/1.138, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2271/0.2271, allocations: 48.79 MB / 320.8 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.0004468/0.0004468, allocations: 15.31 kB / 391.9 MB, free: 50.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07436, allocations: 60.27 MB / 452.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.002318/0.07671, allocations: 2.371 MB / 454.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009658/0.07768, allocations: 0.7527 MB / 455.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.07781, allocations: 7.938 kB / 455.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.07793, allocations: 23.72 kB / 455.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002398/0.07818, allocations: 107.2 kB / 455.4 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.07833, allocations: 71.92 kB / 455.5 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.07867, allocations: 386.2 kB / 455.9 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.07882, allocations: 73 kB / 456 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.079, allocations: 135.3 kB / 456.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.07918, allocations: 155.1 kB / 456.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.07922, allocations: 16 kB / 456.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.886e-05/0.07928, allocations: 16 kB / 456.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.387e-05/0.07933, allocations: 59.62 kB / 456.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.07947, allocations: 184.7 kB / 456.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002528/0.07973, allocations: 294.9 kB / 456.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.07974, allocations: 7.984 kB / 456.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07975, allocations: 0 / 456.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.07976, allocations: 0 / 456.8 MB, free: 4.41 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008245/0.08059, allocations: 0.6115 MB / 457.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.08063, allocations: 12.03 kB / 457.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.08068, allocations: 58.73 kB / 457.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.974e-05/0.08078, allocations: 40.47 kB / 457.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.0811, allocations: 312 kB / 457.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.08112, allocations: 20.81 kB / 457.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.08117, allocations: 28.31 kB / 457.9 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.08156, allocations: 250.8 kB / 458.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.08158, allocations: 0 / 458.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.0816, allocations: 8 kB / 458.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.08162, allocations: 8 kB / 458.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003596/0.08198, allocations: 189.6 kB / 458.3 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.083, allocations: 0.8712 MB / 459.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.08331, allocations: 198.5 kB / 459.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.0835, allocations: 112.8 kB / 459.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.08353, allocations: 4 kB / 459.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.08356, allocations: 38.56 kB / 459.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.182e-06/0.08357, allocations: 0 / 459.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001239/0.08481, allocations: 0.776 MB / 460.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.08485, allocations: 51.41 kB / 460.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.08512, allocations: 304.6 kB / 460.7 MB, free: 292 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.08514, allocations: 29.7 kB / 460.7 MB, free: 256 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.08526, allocations: 180.6 kB / 460.9 MB, free: 72 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.08533, allocations: 98.55 kB / 461 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.08538, allocations: 37.64 kB / 461 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.08549, allocations: 342.8 kB / 461.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.08566, allocations: 83.91 kB / 461.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.08585, allocations: 118.5 kB / 461.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.08619, allocations: 208.2 kB / 461.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.0862, allocations: 0 / 461.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005802/0.08679, allocations: 326.9 kB / 462.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.08681, allocations: 8 kB / 462.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.08682, allocations: 0 / 462.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002278/0.08706, allocations: 60.88 kB / 462.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.0874, allocations: 79.88 kB / 462.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.08938, allocations: 2.827 MB / 465 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.08956, allocations: 19.95 kB / 465.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.08958, allocations: 12 kB / 465.1 MB, free: 11.56 MB / 350.1 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.08972, allocations: 146.9 kB / 465.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.08977, allocations: 35.56 kB / 465.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004375/0.09022, allocations: 281.2 kB / 465.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.09023, allocations: 4 kB / 465.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-06/0.09024, allocations: 0 / 465.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.09024, allocations: 0 / 465.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/0.09107, allocations: 0.6778 MB / 466.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.09108, allocations: 0 / 466.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.09137, allocations: 67.91 kB / 466.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.09138, allocations: 3.984 kB / 466.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.0914, allocations: 4 kB / 466.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09141, allocations: 4 kB / 466.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.09141, allocations: 0 / 466.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000607/0.09202, allocations: 475.5 kB / 466.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.076e-05/0.09213, allocations: 124.7 kB / 466.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.09216, allocations: 7.984 kB / 466.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.09234, allocations: 12 kB / 466.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.0924, allocations: 19.97 kB / 466.9 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.09241, allocations: 8 kB / 466.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001815/0.0926, allocations: 215.1 kB / 467.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09261, allocations: 7.938 kB / 467.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.09291, allocations: 68 kB / 467.2 MB, free: 9.324 MB / 350.1 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 (28): * Single equations (assignments): 28 * 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.0008176/0.09374, allocations: 0.9931 MB / 468.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007323/0.09448, allocations: 378.6 kB / 468.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.09449, allocations: 3.938 kB / 468.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.09469, allocations: 111.9 kB / 468.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.09509, allocations: 53.05 kB / 468.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004059/0.09916, allocations: 3.663 MB / 472.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.09946, allocations: 0.7915 MB / 473.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.09958, allocations: 34.95 kB / 473.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.09974, allocations: 115.4 kB / 473.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.09975, allocations: 0 / 473.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.1154, allocations: 6.373 MB / 479.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/0.1156, allocations: 232.2 kB / 479.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/1.778, allocations: 0 / 479.9 MB, free: 12.38 MB / 366.1 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/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)