Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.0009209/0.0009209, allocations: 115 kB / 16.63 MB, free: 6.812 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.0009181/0.000918, allocations: 186 kB / 17.55 MB, free: 5.934 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.198/1.198, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2506/0.2506, allocations: 48.85 MB / 319.6 MB, free: 11.26 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.001393/0.001393, allocations: 66.7 kB / 389.6 MB, free: 48.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07915/0.08056, allocations: 59.15 MB / 448.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.00346/0.08405, allocations: 2.189 MB / 451 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.08513, allocations: 0.6008 MB / 451.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.08529, allocations: 0 / 451.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.08546, allocations: 27.78 kB / 451.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.08568, allocations: 51.61 kB / 451.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.08584, allocations: 31.97 kB / 451.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000233/0.08608, allocations: 211 kB / 451.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.08621, allocations: 40.28 kB / 451.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.08635, allocations: 87.59 kB / 452 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.08648, allocations: 83.56 kB / 452.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.08651, allocations: 12 kB / 452.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.284e-05/0.08657, allocations: 16 kB / 452.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.957e-05/0.08662, allocations: 43.77 kB / 452.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.97e-05/0.08669, allocations: 79.55 kB / 452.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.0869, allocations: 163.6 kB / 452.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.08691, allocations: 0 / 452.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.08692, allocations: 4 kB / 452.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.08693, allocations: 4 kB / 452.4 MB, free: 6.391 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000654/0.08759, allocations: 486.5 kB / 452.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.08764, allocations: 15.89 kB / 452.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.08768, allocations: 46.73 kB / 453 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.08776, allocations: 20.66 kB / 453 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.08801, allocations: 248.8 kB / 453.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.08804, allocations: 12.38 kB / 453.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.08807, allocations: 12.38 kB / 453.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.08829, allocations: 127.4 kB / 453.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.08831, allocations: 7.938 kB / 453.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.08832, allocations: 4 kB / 453.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.08834, allocations: 4 kB / 453.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.08851, allocations: 76.59 kB / 453.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006788/0.0892, allocations: 0.5605 MB / 454 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.08947, allocations: 110.5 kB / 454.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.165e-05/0.08957, allocations: 40.84 kB / 454.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.08959, allocations: 7.938 kB / 454.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.08961, allocations: 34.5 kB / 454.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.08962, allocations: 0 / 454.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007178/0.09034, allocations: 446 kB / 454.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.09039, allocations: 55.41 kB / 454.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.09058, allocations: 229 kB / 454.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.0906, allocations: 25.7 kB / 455 MB, free: 3.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.09067, allocations: 120.4 kB / 455.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.09072, allocations: 47.3 kB / 455.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.09078, allocations: 33.7 kB / 455.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.09089, allocations: 334.8 kB / 455.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.785e-05/0.09098, allocations: 31.97 kB / 455.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.53e-05/0.09107, allocations: 54.56 kB / 455.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.09123, allocations: 86.56 kB / 455.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.09124, allocations: 4 kB / 455.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000234/0.09148, allocations: 157.2 kB / 455.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.09151, allocations: 4 kB / 455.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.09152, allocations: 7.875 kB / 455.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.09154, allocations: 4 kB / 455.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.09168, allocations: 31.98 kB / 455.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.09169, allocations: 0 / 455.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.576e-05/0.09179, allocations: 8 kB / 455.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.09181, allocations: 8.062 kB / 455.9 MB, free: 2.641 MB / 334.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 (16): * Single equations (assignments): 16 * 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 8.415e-05/0.0919, allocations: 125.8 kB / 456 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.09194, allocations: 19.75 kB / 456 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.202e-05/0.09199, allocations: 25.72 kB / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.092, allocations: 0 / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.09201, allocations: 0 / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.09201, allocations: 3.984 kB / 456 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.09249, allocations: 446.4 kB / 456.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.09251, allocations: 0 / 456.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001492/0.09266, allocations: 31.91 kB / 456.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.09267, allocations: 7.938 kB / 456.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.09269, allocations: 0 / 456.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.09269, allocations: 0 / 456.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.0927, allocations: 3.984 kB / 456.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.09301, allocations: 259.2 kB / 456.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-05/0.09309, allocations: 105 kB / 456.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.09312, allocations: 3.984 kB / 456.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.09324, allocations: 4 kB / 456.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.09329, allocations: 7.984 kB / 456.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.0933, allocations: 4 kB / 456.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.09344, allocations: 164.4 kB / 457 MB, free: 1.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.273e-06/0.09344, allocations: 3.938 kB / 457.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002412/0.09369, allocations: 35.94 kB / 457.1 MB, free: 1.324 MB / 334.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 (12): * Single equations (assignments): 12 * 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.0005363/0.09423, allocations: 0.798 MB / 457.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.09444, allocations: 96.75 kB / 458 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.09445, allocations: 3.938 kB / 458 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.433e-05/0.09453, allocations: 44.11 kB / 458 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.09495, allocations: 33.89 kB / 458.1 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.09745, allocations: 2.315 MB / 460.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.09773, allocations: 0.728 MB / 461.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.866e-05/0.09781, allocations: 13.55 kB / 461.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/0.09789, allocations: 51.42 kB / 461.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.0979, allocations: 8 kB / 461.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01392/0.1118, allocations: 3.547 MB / 464.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.1121, allocations: 207.2 kB / 464.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.799, allocations: 0 / 464.9 MB, free: 9.262 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)