Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.0008438/0.0008439, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.001047/0.001047, allocations: 179.8 kB / 17.21 MB, free: 6.32 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.468/1.468, allocations: 205.4 MB / 223.4 MB, free: 5.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4456/0.4456, allocations: 48.77 MB / 320.4 MB, free: 3.824 MB / 254.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.0008655/0.0008655, allocations: 14.97 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1522, allocations: 60.25 MB / 451.5 MB, free: 1.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.2315/0.3838, allocations: 2.01 MB / 453.5 MB, free: 47.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.3851, allocations: 0.6359 MB / 454.2 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.3853, allocations: 9.406 kB / 454.2 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.3854, allocations: 23.45 kB / 454.2 MB, free: 47.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.3857, allocations: 75.19 kB / 454.3 MB, free: 47.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.3858, allocations: 54.41 kB / 454.3 MB, free: 47.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.3861, allocations: 249.9 kB / 454.6 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.3862, allocations: 52.5 kB / 454.6 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3864, allocations: 97.59 kB / 454.7 MB, free: 47.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.3865, allocations: 102.7 kB / 454.8 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.3865, allocations: 11.53 kB / 454.8 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.3866, allocations: 8.906 kB / 454.8 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.017e-05/0.3866, allocations: 35.09 kB / 454.9 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.3867, allocations: 68.27 kB / 454.9 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.3868, allocations: 156.7 kB / 455.1 MB, free: 47.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3868, allocations: 0 / 455.1 MB, free: 47.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3868, allocations: 0 / 455.1 MB, free: 47.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.3868, allocations: 0 / 455.1 MB, free: 47.22 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006861/0.3875, allocations: 0.5253 MB / 455.6 MB, free: 46.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3876, allocations: 11.94 kB / 455.6 MB, free: 46.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.358e-05/0.3876, allocations: 51.5 kB / 455.7 MB, free: 46.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.661e-05/0.3877, allocations: 29.94 kB / 455.7 MB, free: 46.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.388, allocations: 257 kB / 456 MB, free: 46.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.388, allocations: 11.78 kB / 456 MB, free: 46.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.388, allocations: 20.78 kB / 456 MB, free: 46.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.3883, allocations: 171.1 kB / 456.2 MB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3884, allocations: 0 / 456.2 MB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.3884, allocations: 12.16 kB / 456.2 MB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3884, allocations: 2.938 kB / 456.2 MB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.3887, allocations: 130.6 kB / 456.3 MB, free: 46.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007783/0.3895, allocations: 0.6563 MB / 457 MB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.3897, allocations: 140.1 kB / 457.1 MB, free: 46.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.3898, allocations: 80.86 kB / 457.2 MB, free: 46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.3899, allocations: 6.875 kB / 457.2 MB, free: 46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.3899, allocations: 39.28 kB / 457.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.143e-06/0.3899, allocations: 3.031 kB / 457.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.000906/0.3908, allocations: 0.5708 MB / 457.8 MB, free: 45.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.3908, allocations: 54.06 kB / 457.9 MB, free: 45.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.391, allocations: 225.2 kB / 458.1 MB, free: 45.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.3911, allocations: 32.42 kB / 458.1 MB, free: 45.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/0.3912, allocations: 142.8 kB / 458.2 MB, free: 45.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.3912, allocations: 68.12 kB / 458.3 MB, free: 45.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.3912, allocations: 7.25 kB / 458.3 MB, free: 45.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.886e-05/0.3913, allocations: 335.6 kB / 458.6 MB, free: 44.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.3914, allocations: 56.94 kB / 458.7 MB, free: 44.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.3916, allocations: 77 kB / 458.8 MB, free: 44.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.3917, allocations: 67.25 kB / 458.8 MB, free: 44.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3917, allocations: 0 / 458.8 MB, free: 44.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002914/0.392, allocations: 197.8 kB / 459 MB, free: 44.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.392, allocations: 12.14 kB / 459 MB, free: 44.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.392, allocations: 4.031 kB / 459 MB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.3921, allocations: 2.75 kB / 459.1 MB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.3924, allocations: 68.98 kB / 459.1 MB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000741/0.3932, allocations: 1.351 MB / 460.5 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.3933, allocations: 11.5 kB / 460.5 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.3933, allocations: 7.25 kB / 460.5 MB, free: 43.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.6e-05/0.3934, allocations: 132 kB / 460.6 MB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.3935, allocations: 23.14 kB / 460.6 MB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.3938, allocations: 193.3 kB / 460.8 MB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3938, allocations: 8.312 kB / 460.8 MB, free: 43.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3938, allocations: 1.5 kB / 460.8 MB, free: 43.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3938, allocations: 3.422 kB / 460.8 MB, free: 43.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005638/0.3944, allocations: 0.5394 MB / 461.4 MB, free: 43.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3944, allocations: 0.5625 kB / 461.4 MB, free: 43.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/0.3946, allocations: 45.98 kB / 461.4 MB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.3946, allocations: 6.438 kB / 461.4 MB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3946, allocations: 4 kB / 461.4 MB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3946, allocations: 3.953 kB / 461.4 MB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3946, allocations: 0 / 461.4 MB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004198/0.395, allocations: 357 kB / 461.8 MB, free: 42.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.3951, allocations: 108.4 kB / 461.9 MB, free: 42.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.3952, allocations: 6.719 kB / 461.9 MB, free: 42.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.3953, allocations: 11.14 kB / 461.9 MB, free: 42.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.3954, allocations: 15.94 kB / 461.9 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.3954, allocations: 7.219 kB / 461.9 MB, free: 42.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.3955, allocations: 166.1 kB / 462.1 MB, free: 42.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3955, allocations: 0 / 462.1 MB, free: 42.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002772/0.3958, allocations: 47.78 kB / 462.1 MB, free: 42.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005751/0.3964, allocations: 0.884 MB / 463 MB, free: 42.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.3969, allocations: 177.1 kB / 463.2 MB, free: 42.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3969, allocations: 0 / 463.2 MB, free: 42.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.397, allocations: 81.02 kB / 463.3 MB, free: 42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.3974, allocations: 33.09 kB / 463.3 MB, free: 42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.3993, allocations: 1.587 MB / 464.9 MB, free: 41.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.3995, allocations: 0.7518 MB / 465.6 MB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3996, allocations: 28.91 kB / 465.7 MB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.3997, allocations: 73.47 kB / 465.7 MB, free: 40.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3997, allocations: 2.781 kB / 465.8 MB, free: 40.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.4144, allocations: 4.409 MB / 470.2 MB, free: 40.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/0.4146, allocations: 184.1 kB / 470.3 MB, free: 39.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.192, allocations: 0 / 470.3 MB, free: 39.9 MB / 382.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) Environment - environmentSimulation: