Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009487/0.0009488, allocations: 108.4 kB / 17.73 MB, free: 5.324 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.0009077/0.0009077, allocations: 187 kB / 18.67 MB, free: 4.398 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.125/1.125, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2298/0.2298, allocations: 48.84 MB / 320.7 MB, free: 11 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.001271/0.001271, allocations: 59.91 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.08699, allocations: 59.16 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002992/0.09001, allocations: 2.292 MB / 0.5006 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.09104, allocations: 0.6475 MB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.09118, allocations: 4 kB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.09131, allocations: 39.59 kB / 0.5013 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.09157, allocations: 75.33 kB / 0.5014 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.09172, allocations: 59.81 kB / 0.5014 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.09202, allocations: 286.8 kB / 0.5017 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.09217, allocations: 77.25 kB / 0.5018 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.09234, allocations: 115.4 kB / 0.5019 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.0925, allocations: 115.5 kB / 0.502 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.09254, allocations: 24 kB / 0.502 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.09261, allocations: 20 kB / 0.502 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.545e-05/0.09266, allocations: 51.7 kB / 0.5021 GB, free: 9.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.721e-05/0.09276, allocations: 123.3 kB / 0.5022 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.09301, allocations: 227.1 kB / 0.5024 GB, free: 9.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09302, allocations: 0 / 0.5024 GB, free: 9.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09303, allocations: 0 / 0.5024 GB, free: 9.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.09304, allocations: 0 / 0.5024 GB, free: 9.105 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008162/0.09386, allocations: 0.5646 MB / 0.503 GB, free: 8.492 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.09389, allocations: 11.89 kB / 0.503 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.094, allocations: 32.56 kB / 0.503 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.09431, allocations: 266.7 kB / 0.5033 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.09437, allocations: 46.2 kB / 0.5033 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.09441, allocations: 20.38 kB / 0.5033 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.09471, allocations: 179 kB / 0.5035 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.09473, allocations: 0 / 0.5035 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.09476, allocations: 8 kB / 0.5035 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.09477, allocations: 4 kB / 0.5035 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.09503, allocations: 127.8 kB / 0.5036 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008559/0.0959, allocations: 0.6734 MB / 0.5043 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.09622, allocations: 154.5 kB / 0.5044 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.09638, allocations: 76.83 kB / 0.5045 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.0964, allocations: 7.984 kB / 0.5045 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.09643, allocations: 30.56 kB / 0.5046 GB, free: 6.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.09644, allocations: 0 / 0.5046 GB, free: 6.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009811/0.09742, allocations: 0.5872 MB / 0.5051 GB, free: 6.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.09747, allocations: 55.41 kB / 0.5052 GB, free: 6.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.09767, allocations: 233 kB / 0.5054 GB, free: 5.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.0977, allocations: 29.7 kB / 0.5054 GB, free: 5.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.09778, allocations: 148.3 kB / 0.5056 GB, free: 5.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.09783, allocations: 67 kB / 0.5056 GB, free: 5.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-05/0.0979, allocations: 45.72 kB / 0.5057 GB, free: 5.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.779e-05/0.098, allocations: 334.8 kB / 0.506 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.09813, allocations: 55.97 kB / 0.506 GB, free: 5.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.09828, allocations: 87.14 kB / 0.5061 GB, free: 5.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.09854, allocations: 149.5 kB / 0.5063 GB, free: 4.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.09855, allocations: 0 / 0.5063 GB, free: 4.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003272/0.09888, allocations: 201.2 kB / 0.5065 GB, free: 4.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.0989, allocations: 8 kB / 0.5065 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.09891, allocations: 0 / 0.5065 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.09892, allocations: 0 / 0.5065 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.09932, allocations: 79.92 kB / 0.5065 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.09933, allocations: 4 kB / 0.5066 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.09946, allocations: 11.98 kB / 0.5066 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.09948, allocations: 8 kB / 0.5066 GB, free: 4.547 MB / 398.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 0.0001113/0.0996, allocations: 129.8 kB / 0.5067 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.185e-05/0.09964, allocations: 23.72 kB / 0.5067 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.0997, allocations: 30.17 kB / 0.5067 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.09971, allocations: 4 kB / 0.5068 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.09972, allocations: 4 kB / 0.5068 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.09973, allocations: 0 / 0.5068 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006525/0.1004, allocations: 0.5412 MB / 0.5073 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1004, allocations: 0 / 0.5073 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.1007, allocations: 67.89 kB / 0.5073 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1008, allocations: 7.875 kB / 0.5074 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1008, allocations: 8 kB / 0.5074 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1008, allocations: 0 / 0.5074 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1008, allocations: 7.938 kB / 0.5074 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/0.1013, allocations: 347.4 kB / 0.5077 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.624e-05/0.1014, allocations: 108.8 kB / 0.5078 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.1014, allocations: 4 kB / 0.5078 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.1015, allocations: 11.98 kB / 0.5078 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.1016, allocations: 19.92 kB / 0.5078 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.1016, allocations: 4 kB / 0.5078 GB, free: 3.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1018, allocations: 172.5 kB / 0.508 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1018, allocations: 0 / 0.508 GB, free: 2.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002487/0.102, allocations: 40 kB / 0.508 GB, free: 2.934 MB / 398.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: 1 (BreakerCommand.y) * 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 7.698e-05/0.1021, allocations: 103.2 kB / 0.5081 GB, free: 2.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002963/0.1024, allocations: 147.9 kB / 0.5083 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.1024, allocations: 0 / 0.5083 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.1025, allocations: 75.91 kB / 0.5084 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.1029, allocations: 36.42 kB / 0.5084 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000988/0.1039, allocations: 0.6847 MB / 0.5091 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.1042, allocations: 0.7478 MB / 0.5098 GB, free: 1.078 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/0.1042, allocations: 19.44 kB / 0.5098 GB, free: 1.059 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1042, allocations: 0 / 0.5098 GB, free: 1.059 MB / 398.1 MB Notification: Performance of Templates: time 0.004008/0.1082, allocations: 2.642 MB / 0.5124 GB, free: 14.41 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)