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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.002253/0.002253, allocations: 195.4 kB / 18.52 MB, free: 4.637 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.461/1.461, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3185/0.3185, allocations: 48.85 MB / 320.6 MB, free: 11.09 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.002031/0.002031, allocations: 70.61 kB / 390.7 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09247/0.09452, allocations: 59.17 MB / 449.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003637/0.09819, allocations: 2.273 MB / 452.2 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.09933, allocations: 0.6592 MB / 452.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.09945, allocations: 3.938 kB / 452.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.09959, allocations: 31.66 kB / 452.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.09983, allocations: 83.33 kB / 453 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.1, allocations: 63.84 kB / 453 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.1003, allocations: 270.8 kB / 453.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.1005, allocations: 72.64 kB / 453.4 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.1007, allocations: 103.6 kB / 453.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.1008, allocations: 111.4 kB / 453.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.1009, allocations: 20 kB / 453.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.101, allocations: 24 kB / 453.6 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.101, allocations: 43.78 kB / 453.7 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1012, allocations: 119.3 kB / 453.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.1014, allocations: 223.4 kB / 454 MB, free: 5.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1014, allocations: 0 / 454 MB, free: 5.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1015, allocations: 4 kB / 454 MB, free: 5.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1015, allocations: 0 / 454 MB, free: 5.641 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009201/0.1024, allocations: 0.5489 MB / 454.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.1024, allocations: 19.88 kB / 454.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1026, allocations: 32.56 kB / 454.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.1029, allocations: 258.8 kB / 454.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.1029, allocations: 12.38 kB / 454.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.103, allocations: 16.38 kB / 454.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.1033, allocations: 175.4 kB / 455 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1033, allocations: 0 / 455 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1033, allocations: 4 kB / 455.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1033, allocations: 4 kB / 455.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.1036, allocations: 123.9 kB / 455.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009759/0.1046, allocations: 0.6502 MB / 455.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.1049, allocations: 142.4 kB / 456 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1051, allocations: 72.81 kB / 456 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1051, allocations: 4 kB / 456 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1051, allocations: 38.56 kB / 456.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.1051, allocations: 0 / 456.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001128/0.1063, allocations: 0.5475 MB / 456.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.1063, allocations: 59.34 kB / 456.7 MB, free: 2.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1066, allocations: 229 kB / 456.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1066, allocations: 33.7 kB / 456.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1067, allocations: 148.3 kB / 457.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.443e-05/0.1068, allocations: 63 kB / 457.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.1069, allocations: 45.7 kB / 457.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.107, allocations: 334.8 kB / 457.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.1072, allocations: 59.84 kB / 457.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.1073, allocations: 81.53 kB / 457.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.1076, allocations: 129.5 kB / 457.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.1076, allocations: 0 / 457.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003635/0.108, allocations: 197.6 kB / 458 MB, free: 1.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.108, allocations: 4 kB / 458 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.108, allocations: 4.031 kB / 458 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.108, allocations: 4 kB / 458 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.1084, allocations: 67.89 kB / 458.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.1097, allocations: 1.433 MB / 459.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.1099, allocations: 4.031 kB / 459.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.1099, allocations: 16.12 kB / 459.5 MB, free: 15.69 MB / 350.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.11, allocations: 134 kB / 459.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.1101, allocations: 19.72 kB / 459.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003741/0.1105, allocations: 187.7 kB / 459.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1105, allocations: 4 kB / 459.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1105, allocations: 4 kB / 459.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1105, allocations: 0 / 459.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007535/0.1113, allocations: 0.5307 MB / 460.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1113, allocations: 0 / 460.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.1115, allocations: 39.97 kB / 460.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1115, allocations: 0 / 460.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.1115, allocations: 8 kB / 460.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1116, allocations: 0 / 460.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1116, allocations: 0 / 460.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.1121, allocations: 352.1 kB / 460.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.1122, allocations: 112.9 kB / 460.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.1122, allocations: 0 / 460.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.1124, allocations: 11.98 kB / 460.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.1125, allocations: 11.98 kB / 460.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.1125, allocations: 11.98 kB / 460.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1127, allocations: 168.5 kB / 461.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1127, allocations: 0 / 461.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1129, allocations: 44 kB / 461.1 MB, free: 13.96 MB / 350.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 (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.0001169/0.1131, allocations: 103.1 kB / 461.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.1136, allocations: 168.2 kB / 461.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1136, allocations: 64 / 461.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.1138, allocations: 79.86 kB / 461.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.1143, allocations: 44.33 kB / 461.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1156, allocations: 0.6692 MB / 462.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.116, allocations: 0.7481 MB / 462.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.694e-05/0.1161, allocations: 23.42 kB / 463 MB, free: 12.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1161, allocations: 0 / 463 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Templates: time 0.005441/0.1215, allocations: 2.928 MB / 465.9 MB, free: 9.141 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)