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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008135/0.0008136, allocations: 93.47 kB / 16.32 MB, free: 5.578 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.0009005/0.0009005, allocations: 177.6 kB / 17.2 MB, free: 5.496 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.299/1.299, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2427/0.2427, allocations: 48.76 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.0004725/0.0004726, allocations: 11.75 kB / 391.2 MB, free: 50.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.08494, allocations: 60.27 MB / 451.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003039/0.08802, allocations: 2.869 MB / 454.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.0896, allocations: 0.8424 MB / 455.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.08986, allocations: 11.94 kB / 455.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.09004, allocations: 43.56 kB / 455.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.09039, allocations: 138.9 kB / 455.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.09062, allocations: 99.81 kB / 455.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000456/0.09108, allocations: 486.3 kB / 455.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.0913, allocations: 111.5 kB / 456 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.09151, allocations: 171.2 kB / 456.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.09175, allocations: 191 kB / 456.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.17e-05/0.0918, allocations: 16 kB / 456.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-05/0.09188, allocations: 20 kB / 456.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.877e-05/0.09196, allocations: 71.61 kB / 456.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.09205, allocations: 101.5 kB / 456.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002946/0.09235, allocations: 311.4 kB / 456.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.09236, allocations: 4 kB / 456.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09237, allocations: 0 / 456.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.09238, allocations: 0 / 456.9 MB, free: 4.055 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.001176/0.09357, allocations: 0.7165 MB / 457.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.09361, allocations: 12.02 kB / 457.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.09375, allocations: 59.28 kB / 457.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.09421, allocations: 353 kB / 458 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.09425, allocations: 24.66 kB / 458 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.09431, allocations: 39.91 kB / 458.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.09481, allocations: 309.9 kB / 458.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.09484, allocations: 4 kB / 458.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.09488, allocations: 15.95 kB / 458.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.09489, allocations: 8 kB / 458.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003866/0.09528, allocations: 226.4 kB / 458.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.09687, allocations: 1.175 MB / 459.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004409/0.09733, allocations: 260.5 kB / 460.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.09754, allocations: 129.3 kB / 460.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.09758, allocations: 8.281 kB / 460.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.09761, allocations: 34.84 kB / 460.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.513e-06/0.09761, allocations: 0 / 460.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001941/0.09956, allocations: 1.115 MB / 461.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.0996, allocations: 59.27 kB / 461.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.09996, allocations: 369.7 kB / 461.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.09999, allocations: 33.7 kB / 461.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.1001, allocations: 220.6 kB / 462 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.015e-05/0.1002, allocations: 130.1 kB / 462.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.538e-05/0.1002, allocations: 8 kB / 462.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1004, allocations: 354.8 kB / 462.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.1006, allocations: 92.83 kB / 462.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.1008, allocations: 140.6 kB / 462.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.101, allocations: 119.9 kB / 462.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.101, allocations: 0 / 462.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005129/0.1015, allocations: 341 kB / 463.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1015, allocations: 7.781 kB / 463.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1015, allocations: 4 kB / 463.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1016, allocations: 7.938 kB / 463.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.1023, allocations: 155.9 kB / 463.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009753/0.1032, allocations: 1.342 MB / 464.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.1035, allocations: 19.97 kB / 464.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.1035, allocations: 11.94 kB / 464.7 MB, free: 11.73 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.0001482/0.1037, allocations: 153.8 kB / 464.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.229e-05/0.1037, allocations: 47.61 kB / 464.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004863/0.1042, allocations: 321.8 kB / 465.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.1042, allocations: 4 kB / 465.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.1042, allocations: 0 / 465.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1042, allocations: 3.984 kB / 465.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009578/0.1052, allocations: 0.7951 MB / 466 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1052, allocations: 4 kB / 466 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.1056, allocations: 79.89 kB / 466.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1056, allocations: 0 / 466.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.1057, allocations: 12 kB / 466.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1057, allocations: 0 / 466.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1057, allocations: 0 / 466.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006618/0.1063, allocations: 0.5073 MB / 466.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.1065, allocations: 144.5 kB / 466.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.756e-05/0.1065, allocations: 8 kB / 466.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.1067, allocations: 8 kB / 466.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.1068, allocations: 19.97 kB / 466.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.1068, allocations: 12 kB / 466.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.1071, allocations: 267.2 kB / 467.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1071, allocations: 3.938 kB / 467.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.1074, allocations: 84 kB / 467.2 MB, free: 9.172 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.0001028/0.1075, allocations: 103.2 kB / 467.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006265/0.1082, allocations: 294.3 kB / 467.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1082, allocations: 0 / 467.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.1084, allocations: 135.5 kB / 467.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004844/0.1089, allocations: 73.52 kB / 467.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.1107, allocations: 1.363 MB / 469.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1111, allocations: 0.8274 MB / 469.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.1113, allocations: 55.23 kB / 470 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.1114, allocations: 31.62 kB / 470 MB, free: 6.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1114, allocations: 0 / 470 MB, free: 6.246 MB / 350.1 MB Notification: Performance of Templates: time 0.007042/0.1184, allocations: 3.824 MB / 473.8 MB, free: 2.422 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile Environment - environmentSimulation: (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) Environment - environmentSimulation: