Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.0008612/0.0008612, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.0009016/0.0009021, allocations: 182.6 kB / 17.21 MB, free: 6.336 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.4/1.4, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2558/0.2558, allocations: 48.78 MB / 320.4 MB, free: 11.23 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.0004731/0.0004731, allocations: 18.61 kB / 391.3 MB, free: 50.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08821, allocations: 60.26 MB / 451.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.002827/0.09108, allocations: 2.877 MB / 454.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.09219, allocations: 0.8424 MB / 455.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.09236, allocations: 11.94 kB / 455.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.09248, allocations: 43.56 kB / 455.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.09277, allocations: 138.9 kB / 455.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.09296, allocations: 99.88 kB / 455.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004108/0.09338, allocations: 482.4 kB / 456 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.09358, allocations: 111.4 kB / 456.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.09377, allocations: 175.2 kB / 456.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.09399, allocations: 187 kB / 456.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.09404, allocations: 20 kB / 456.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.699e-05/0.09411, allocations: 20 kB / 456.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.09418, allocations: 75.61 kB / 456.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.81e-05/0.09426, allocations: 101.5 kB / 456.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.09453, allocations: 307.3 kB / 457 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.09454, allocations: 0 / 457 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09454, allocations: 0 / 457 MB, free: 3.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.09456, allocations: 0 / 457 MB, free: 3.957 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001047/0.09561, allocations: 0.7282 MB / 457.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.09565, allocations: 12.02 kB / 457.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.09571, allocations: 62.53 kB / 457.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.09582, allocations: 59.34 kB / 457.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.0962, allocations: 345.1 kB / 458.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.09623, allocations: 24.66 kB / 458.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.09629, allocations: 39.91 kB / 458.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004473/0.09674, allocations: 321.8 kB / 458.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.09676, allocations: 3.953 kB / 458.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.0968, allocations: 12 kB / 458.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.09681, allocations: 8 kB / 458.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.09717, allocations: 214.4 kB / 458.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.09871, allocations: 1.183 MB / 460 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.09915, allocations: 268.1 kB / 460.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.09936, allocations: 129.4 kB / 460.4 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.09939, allocations: 4.281 kB / 460.4 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.09942, allocations: 38.8 kB / 460.4 MB, free: 340 kB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.322e-06/0.09943, allocations: 4 kB / 460.4 MB, free: 336 kB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.00181/0.1012, allocations: 1.091 MB / 461.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.1013, allocations: 59.2 kB / 461.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.1016, allocations: 377.7 kB / 461.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1017, allocations: 33.7 kB / 462 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1018, allocations: 224.6 kB / 462.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.57e-05/0.1019, allocations: 126.4 kB / 462.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.626e-05/0.1019, allocations: 12 kB / 462.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.102, allocations: 346.8 kB / 462.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.1022, allocations: 92.83 kB / 462.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.1024, allocations: 152.6 kB / 462.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.1026, allocations: 100 kB / 463 MB, free: 13.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1026, allocations: 0 / 463 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004825/0.1031, allocations: 356.9 kB / 463.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.1031, allocations: 11.89 kB / 463.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1031, allocations: 0 / 463.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1032, allocations: 4 kB / 463.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.1038, allocations: 151.8 kB / 463.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000905/0.1047, allocations: 1.343 MB / 464.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.1049, allocations: 23.98 kB / 464.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.105, allocations: 16 kB / 464.9 MB, free: 11.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * 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 0.0001427/0.1051, allocations: 149.8 kB / 465 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.884e-05/0.1052, allocations: 43.48 kB / 465.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.1057, allocations: 317.8 kB / 465.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1057, allocations: 4 kB / 465.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1057, allocations: 4 kB / 465.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1057, allocations: 3.984 kB / 465.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009183/0.1066, allocations: 0.7912 MB / 466.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1066, allocations: 0 / 466.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.107, allocations: 79.91 kB / 466.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.107, allocations: 8 kB / 466.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.1071, allocations: 11.92 kB / 466.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1071, allocations: 4 kB / 466.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1071, allocations: 0 / 466.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006229/0.1077, allocations: 0.5111 MB / 466.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.1079, allocations: 140.5 kB / 466.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.1079, allocations: 8 kB / 466.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.1081, allocations: 11.98 kB / 466.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.1082, allocations: 19.97 kB / 467 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1082, allocations: 8 kB / 467 MB, free: 9.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002376/0.1084, allocations: 263.2 kB / 467.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1084, allocations: 0 / 467.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003137/0.1087, allocations: 88 kB / 467.3 MB, free: 9.004 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0009156/0.1097, allocations: 1.072 MB / 468.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005954/0.1103, allocations: 297.5 kB / 468.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1103, allocations: 0 / 468.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.1105, allocations: 123.9 kB / 468.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004752/0.111, allocations: 81.75 kB / 468.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/0.1149, allocations: 2.777 MB / 471.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.1154, allocations: 0.8274 MB / 472.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.1156, allocations: 43.25 kB / 472.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.1158, allocations: 155.4 kB / 472.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1158, allocations: 0 / 472.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.1345, allocations: 7.78 MB / 480.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.1347, allocations: 188.9 kB / 480.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.072, allocations: 0 / 480.6 MB, free: 11.5 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) Environment - environmentSimulation: