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.001081/0.001081, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001068/0.001068, allocations: 192 kB / 18.63 MB, free: 4.504 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.271/1.271, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.255/0.255, allocations: 48.84 MB / 320.7 MB, free: 11.04 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.001429/0.001429, allocations: 72.17 kB / 391.5 MB, free: 48.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07662/0.07806, allocations: 59.16 MB / 450.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003471/0.08156, allocations: 2.286 MB / 453 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.08262, allocations: 0.6514 MB / 453.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.08273, allocations: 0 / 453.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.08288, allocations: 39.59 kB / 453.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.0831, allocations: 79.33 kB / 453.7 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.08327, allocations: 59.86 kB / 453.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.08357, allocations: 286.8 kB / 454.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.08373, allocations: 73.31 kB / 454.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.08388, allocations: 107.6 kB / 454.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.08405, allocations: 127.3 kB / 454.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.784e-05/0.08409, allocations: 20 kB / 454.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.81e-05/0.08416, allocations: 20 kB / 454.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.08421, allocations: 43.84 kB / 454.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.08432, allocations: 127.3 kB / 454.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.08456, allocations: 231 kB / 454.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.08457, allocations: 4 kB / 454.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.08458, allocations: 0 / 454.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.08459, allocations: 4 kB / 454.8 MB, free: 4.883 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008426/0.08544, allocations: 0.5607 MB / 455.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.08548, allocations: 11.89 kB / 455.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.08558, allocations: 32.56 kB / 455.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.08593, allocations: 270.7 kB / 455.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.967e-05/0.08599, allocations: 42.27 kB / 455.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.08604, allocations: 20.31 kB / 455.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.08637, allocations: 179 kB / 455.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.08639, allocations: 3.906 kB / 455.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.08641, allocations: 8 kB / 455.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.08643, allocations: 8 kB / 456 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.08671, allocations: 123.9 kB / 456.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009092/0.08763, allocations: 0.6656 MB / 456.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.08798, allocations: 146.5 kB / 456.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.08815, allocations: 84.86 kB / 457 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.08817, allocations: 0 / 457 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.0882, allocations: 30.56 kB / 457 MB, free: 2.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.08821, allocations: 8 kB / 457 MB, free: 2.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001032/0.08925, allocations: 0.569 MB / 457.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.08929, allocations: 55.41 kB / 457.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.08952, allocations: 237 kB / 457.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.08955, allocations: 37.7 kB / 457.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/0.08964, allocations: 148.3 kB / 458 MB, free: 1.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.0897, allocations: 67 kB / 458.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.467e-05/0.08977, allocations: 45.7 kB / 458.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.08988, allocations: 334.8 kB / 458.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.09002, allocations: 55.97 kB / 458.5 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.09018, allocations: 89.55 kB / 458.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.09046, allocations: 145.5 kB / 458.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.09047, allocations: 0 / 458.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003548/0.09083, allocations: 209.1 kB / 459 MB, free: 456 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.09086, allocations: 7.281 kB / 459 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.09087, allocations: 4.031 kB / 459 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.09088, allocations: 0 / 459 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.0913, allocations: 79.94 kB / 459.1 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.09131, allocations: 0 / 459.1 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.09145, allocations: 11.94 kB / 459.1 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.09147, allocations: 8 kB / 459.1 MB, free: 348 kB / 334.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.0001089/0.09159, allocations: 137.8 kB / 459.2 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.09164, allocations: 23.7 kB / 459.2 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.894e-05/0.0917, allocations: 26.19 kB / 459.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.0917, allocations: 0 / 459.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.09171, allocations: 0 / 459.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.09172, allocations: 3.984 kB / 459.3 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007212/0.09245, allocations: 0.5464 MB / 459.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.09246, allocations: 0 / 459.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.09285, allocations: 59.97 kB / 459.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-06/0.09287, allocations: 3.938 kB / 459.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.09289, allocations: 11.94 kB / 459.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.0929, allocations: 4 kB / 459.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.09291, allocations: 3.938 kB / 459.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005004/0.09341, allocations: 347.5 kB / 460.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/0.09352, allocations: 112.8 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.09356, allocations: 4 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.09372, allocations: 4 kB / 460.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.09377, allocations: 19.92 kB / 460.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.09379, allocations: 7.984 kB / 460.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.09395, allocations: 172.5 kB / 460.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.09395, allocations: 0 / 460.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.09423, allocations: 48 kB / 460.6 MB, free: 14.73 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: 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.945e-05/0.09432, allocations: 99.19 kB / 460.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.09466, allocations: 152 kB / 460.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.09467, allocations: 0 / 460.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.09482, allocations: 75.89 kB / 460.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.09519, allocations: 44.47 kB / 461 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.09621, allocations: 0.6401 MB / 461.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.0965, allocations: 0.7478 MB / 462.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.218e-05/0.09659, allocations: 29.92 kB / 462.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.09665, allocations: 19.44 kB / 462.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09666, allocations: 0 / 462.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.004609/0.1013, allocations: 2.006 MB / 464.4 MB, free: 10.86 MB / 350.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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)