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.0008087/0.0008087, allocations: 90.83 kB / 16.65 MB, free: 6.59 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.0008565/0.0008565, allocations: 182.6 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.135/1.135, 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.2264/0.2264, allocations: 48.78 MB / 320.8 MB, free: 11.12 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.0004432/0.0004432, allocations: 13.92 kB / 391.9 MB, free: 50.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07437/0.07482, allocations: 60.27 MB / 452.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.00184/0.07669, allocations: 1.826 MB / 454 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007821/0.07749, allocations: 0.5892 MB / 454.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.872e-05/0.07758, allocations: 7.938 kB / 454.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.41e-05/0.07767, allocations: 19.84 kB / 454.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.07784, allocations: 55.61 kB / 454.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.885e-05/0.07795, allocations: 39.91 kB / 454.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.07815, allocations: 199 kB / 454.9 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.07826, allocations: 36.27 kB / 454.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.07837, allocations: 79.66 kB / 455 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.0785, allocations: 79.56 kB / 455.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.07852, allocations: 11.94 kB / 455.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.368e-05/0.07857, allocations: 8 kB / 455.1 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.07861, allocations: 27.84 kB / 455.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.425e-05/0.07869, allocations: 105.2 kB / 455.2 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.07885, allocations: 155.6 kB / 455.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.07886, allocations: 0 / 455.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.07887, allocations: 3.984 kB / 455.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.07888, allocations: 0 / 455.4 MB, free: 5.828 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.0005635/0.07945, allocations: 470.6 kB / 455.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.07949, allocations: 8.031 kB / 455.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.701e-05/0.07954, allocations: 46.67 kB / 455.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.07961, allocations: 20.75 kB / 455.9 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.07984, allocations: 244.8 kB / 456.2 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.07986, allocations: 12.38 kB / 456.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.07989, allocations: 12.38 kB / 456.2 MB, free: 4.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.08011, allocations: 135.4 kB / 456.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.08013, allocations: 0 / 456.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.08015, allocations: 8 kB / 456.3 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.08016, allocations: 0 / 456.3 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.08033, allocations: 84.81 kB / 456.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006544/0.08099, allocations: 0.5683 MB / 457 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.08123, allocations: 106.6 kB / 457.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.69e-05/0.08133, allocations: 48.83 kB / 457.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.08134, allocations: 0 / 457.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.08138, allocations: 46.5 kB / 457.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.875e-06/0.08139, allocations: 0 / 457.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006898/0.08208, allocations: 450.3 kB / 457.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.08212, allocations: 55.41 kB / 457.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.08231, allocations: 229 kB / 457.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.08233, allocations: 25.7 kB / 457.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.08241, allocations: 128.3 kB / 458.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.08244, allocations: 43.3 kB / 458.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.08248, allocations: 21.7 kB / 458.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.325e-05/0.08258, allocations: 326.8 kB / 458.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.398e-05/0.08266, allocations: 35.98 kB / 458.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.08275, allocations: 62.55 kB / 458.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.08291, allocations: 98.5 kB / 458.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.08292, allocations: 0 / 458.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002263/0.08315, allocations: 149.3 kB / 458.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.08317, allocations: 4 kB / 458.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.08318, allocations: 4 kB / 458.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.08319, allocations: 3.938 kB / 458.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.08332, allocations: 35.98 kB / 458.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.08334, allocations: 0 / 458.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.143e-05/0.08343, allocations: 8.062 kB / 458.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.08345, allocations: 7.938 kB / 458.8 MB, free: 2.078 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.83e-05/0.08354, allocations: 129.8 kB / 459 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.08359, allocations: 19.75 kB / 459 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.08363, allocations: 17.72 kB / 459 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.08364, allocations: 4 kB / 459 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.08365, allocations: 7.938 kB / 459 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.08366, allocations: 3.984 kB / 459 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004561/0.08412, allocations: 450.3 kB / 459.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.08413, allocations: 0 / 459.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.08427, allocations: 27.98 kB / 459.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.08429, allocations: 4 kB / 459.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.0843, allocations: 3.938 kB / 459.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.0843, allocations: 0 / 459.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.08431, allocations: 0 / 459.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003106/0.08462, allocations: 271.2 kB / 459.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.08471, allocations: 104.9 kB / 459.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.08474, allocations: 0 / 459.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.08486, allocations: 11.98 kB / 459.9 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.648e-05/0.08489, allocations: 4 kB / 459.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.08491, allocations: 8 kB / 459.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.08504, allocations: 164.5 kB / 460 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08505, allocations: 0 / 460 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.08528, allocations: 32 kB / 460.1 MB, free: 0.75 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.0005096/0.08579, allocations: 0.8098 MB / 460.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.08599, allocations: 91.88 kB / 461 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.086, allocations: 0 / 461 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.717e-05/0.08609, allocations: 47.98 kB / 461 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.08643, allocations: 31.78 kB / 461.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/0.08885, allocations: 2.401 MB / 463.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.08911, allocations: 0.728 MB / 464.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.226e-05/0.08918, allocations: 17.55 kB / 464.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.615e-05/0.08926, allocations: 55.42 kB / 464.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.08926, allocations: 0 / 464.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01195/0.1012, allocations: 3.371 MB / 467.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.1014, allocations: 202.2 kB / 467.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/1.671, allocations: 4 kB / 467.8 MB, free: 8.777 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)