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.001262/0.001262, allocations: 106.1 kB / 16.92 MB, free: 5.777 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.001279/0.001279, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.289/1.289, allocations: 205.1 MB / 223.7 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.2633/0.2633, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.00141/0.00141, allocations: 72.7 kB / 390.1 MB, free: 48.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07977/0.08119, allocations: 59.16 MB / 449.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003542/0.08476, allocations: 2.291 MB / 451.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.08591, allocations: 0.6514 MB / 452.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.08611, allocations: 4 kB / 452.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.08626, allocations: 31.59 kB / 452.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002603/0.08653, allocations: 79.33 kB / 452.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.08673, allocations: 59.86 kB / 452.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.08705, allocations: 282.8 kB / 452.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.08723, allocations: 73.31 kB / 452.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.08743, allocations: 111.6 kB / 452.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.08761, allocations: 123.3 kB / 452.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.817e-05/0.08766, allocations: 20 kB / 452.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.08774, allocations: 24 kB / 453 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.0878, allocations: 47.84 kB / 453 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.08793, allocations: 123.3 kB / 453.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.0882, allocations: 231.3 kB / 453.4 MB, free: 5.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.08822, allocations: 4 kB / 453.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.08822, allocations: 0 / 453.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.08824, allocations: 0 / 453.4 MB, free: 5.605 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.0009391/0.08918, allocations: 0.5539 MB / 453.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.08923, allocations: 15.89 kB / 453.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.08934, allocations: 28.56 kB / 454 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.08966, allocations: 270.7 kB / 454.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.08972, allocations: 42.25 kB / 454.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.08977, allocations: 20.38 kB / 454.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.09011, allocations: 182.9 kB / 454.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.09014, allocations: 7.906 kB / 454.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.09016, allocations: 8 kB / 454.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.09017, allocations: 7.938 kB / 454.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002894/0.09047, allocations: 119.9 kB / 454.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009526/0.09143, allocations: 0.6656 MB / 455.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.0918, allocations: 146.6 kB / 455.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.09198, allocations: 84.8 kB / 455.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.092, allocations: 7.984 kB / 455.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.09203, allocations: 34.56 kB / 455.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.09204, allocations: 0 / 455.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001136/0.09318, allocations: 0.5762 MB / 456.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.09322, allocations: 51.41 kB / 456.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.09344, allocations: 233 kB / 456.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.09347, allocations: 33.69 kB / 456.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.09357, allocations: 160.2 kB / 456.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.09362, allocations: 63.02 kB / 456.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.651e-05/0.09369, allocations: 45.7 kB / 456.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.09383, allocations: 334.8 kB / 457 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.09398, allocations: 59.97 kB / 457.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.09413, allocations: 81.61 kB / 457.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.09442, allocations: 145.4 kB / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.09443, allocations: 0 / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003741/0.09481, allocations: 201.2 kB / 457.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.09483, allocations: 7.938 kB / 457.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.09485, allocations: 4 kB / 457.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.09486, allocations: 32 / 457.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.09529, allocations: 83.94 kB / 457.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.09531, allocations: 3.938 kB / 457.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.09545, allocations: 12 kB / 457.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.09547, allocations: 4 kB / 457.6 MB, free: 1.066 MB / 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.0001084/0.09559, allocations: 133.7 kB / 457.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.09564, allocations: 23.72 kB / 457.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.0957, allocations: 34.17 kB / 457.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.09571, allocations: 4 kB / 457.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.09572, allocations: 0 / 457.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.09573, allocations: 7.984 kB / 457.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.09647, allocations: 0.5385 MB / 458.3 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.09649, allocations: 3.938 kB / 458.3 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.09687, allocations: 59.97 kB / 458.4 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.09689, allocations: 0 / 458.4 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.09691, allocations: 8 kB / 458.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09692, allocations: 0 / 458.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.09692, allocations: 3.938 kB / 458.4 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000558/0.09749, allocations: 355.6 kB / 458.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.981e-05/0.09759, allocations: 104.9 kB / 458.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/0.09763, allocations: 11.98 kB / 458.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.0978, allocations: 8 kB / 458.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.09786, allocations: 11.92 kB / 458.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.09788, allocations: 4 kB / 458.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.09804, allocations: 176.5 kB / 459.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09805, allocations: 0 / 459.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.09833, allocations: 44 kB / 459.1 MB, free: 15.45 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 8.279e-05/0.09842, allocations: 103.2 kB / 459.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003608/0.09879, allocations: 163.8 kB / 459.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.0988, allocations: 0 / 459.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.09895, allocations: 75.89 kB / 459.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.09933, allocations: 36.42 kB / 459.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.1004, allocations: 0.6558 MB / 460.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.1007, allocations: 0.7478 MB / 460.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.623e-05/0.1008, allocations: 25.94 kB / 460.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.1009, allocations: 19.44 kB / 460.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1009, allocations: 3.938 kB / 460.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Templates: time 0.004735/0.1056, allocations: 2.006 MB / 462.9 MB, free: 11.57 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 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)