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.001405/0.001405, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001564/0.001564, allocations: 186.5 kB / 17.42 MB, free: 6.074 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.251/1.251, allocations: 205.1 MB / 223.3 MB, free: 12.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2724/0.2724, allocations: 48.83 MB / 319.5 MB, free: 11.29 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.00129/0.00129, allocations: 64.34 kB / 389.4 MB, free: 49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08196, allocations: 59.17 MB / 448.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003447/0.08545, allocations: 2.438 MB / 451 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.08652, allocations: 0.6787 MB / 451.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.08664, allocations: 4 kB / 451.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.08679, allocations: 23.78 kB / 451.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.087, allocations: 67.47 kB / 451.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.08716, allocations: 51.95 kB / 451.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.08745, allocations: 274.8 kB / 452.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.08761, allocations: 60.89 kB / 452.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.08776, allocations: 111.4 kB / 452.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.08792, allocations: 111.4 kB / 452.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.08796, allocations: 12 kB / 452.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.946e-05/0.08804, allocations: 20 kB / 452.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.08809, allocations: 35.78 kB / 452.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.08821, allocations: 127.3 kB / 452.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.08845, allocations: 219.3 kB / 452.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.08847, allocations: 0 / 452.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.08847, allocations: 0 / 452.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.08849, allocations: 4 kB / 452.7 MB, free: 5.984 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.0009115/0.08941, allocations: 0.5592 MB / 453.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.08945, allocations: 11.97 kB / 453.3 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.98e-05/0.08955, allocations: 32.56 kB / 453.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.08985, allocations: 266.8 kB / 453.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.08991, allocations: 42.25 kB / 453.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.08995, allocations: 24.31 kB / 453.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.09029, allocations: 179 kB / 453.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.09031, allocations: 3.906 kB / 453.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.09034, allocations: 11.94 kB / 453.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.09035, allocations: 4 kB / 453.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.09063, allocations: 123.9 kB / 454 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009435/0.09159, allocations: 0.6656 MB / 454.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.09195, allocations: 146.5 kB / 454.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.09213, allocations: 84.86 kB / 454.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.09216, allocations: 8 kB / 454.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.09219, allocations: 30.56 kB / 454.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.09219, allocations: 0 / 454.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001094/0.09329, allocations: 0.5787 MB / 455.5 MB, free: 3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.09334, allocations: 55.41 kB / 455.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.09357, allocations: 241 kB / 455.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.09359, allocations: 29.7 kB / 455.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.87e-05/0.09369, allocations: 152.3 kB / 456 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.09374, allocations: 63.02 kB / 456 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.0938, allocations: 37.7 kB / 456.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.09391, allocations: 342.8 kB / 456.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.09406, allocations: 59.97 kB / 456.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.09422, allocations: 85.55 kB / 456.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.09455, allocations: 138.5 kB / 456.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.09456, allocations: 0 / 456.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004137/0.09498, allocations: 213.2 kB / 456.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.095, allocations: 4 kB / 456.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.09501, allocations: 0 / 456.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.09503, allocations: 4 kB / 456.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.09547, allocations: 75.94 kB / 457 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.09549, allocations: 0 / 457 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.09567, allocations: 19.97 kB / 457 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.09569, allocations: 7.938 kB / 457 MB, free: 1.441 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.0001078/0.09581, allocations: 133.8 kB / 457.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.09586, allocations: 23.72 kB / 457.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.09591, allocations: 26.17 kB / 457.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.09592, allocations: 7.938 kB / 457.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.09593, allocations: 0 / 457.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.09594, allocations: 3.984 kB / 457.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.09663, allocations: 0.5413 MB / 457.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.09665, allocations: 0 / 457.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.09703, allocations: 59.97 kB / 457.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.09704, allocations: 0 / 457.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.09706, allocations: 11.94 kB / 457.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.09707, allocations: 0 / 457.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.09708, allocations: 3.938 kB / 457.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000539/0.09762, allocations: 355.4 kB / 458.1 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.258e-05/0.09772, allocations: 112.8 kB / 458.2 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.09776, allocations: 4 kB / 458.3 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.09792, allocations: 8 kB / 458.3 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.09798, allocations: 11.92 kB / 458.3 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.098, allocations: 15.98 kB / 458.3 MB, free: 44 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.09816, allocations: 168.5 kB / 458.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09817, allocations: 0 / 458.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000271/0.09844, allocations: 48 kB / 458.5 MB, free: 15.83 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 0.0001105/0.09856, allocations: 99.17 kB / 458.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003267/0.09889, allocations: 151.7 kB / 458.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.09891, allocations: 4.062 kB / 458.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.09906, allocations: 79.89 kB / 458.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.09946, allocations: 28.42 kB / 458.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.1006, allocations: 0.7278 MB / 459.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.1008, allocations: 0.7559 MB / 460.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.173e-05/0.1009, allocations: 21.88 kB / 460.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.101, allocations: 19.44 kB / 460.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.101, allocations: 4 kB / 460.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Templates: time 0.004206/0.1052, allocations: 1.839 MB / 462.2 MB, free: 12.05 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)