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.0009874/0.0009874, allocations: 107.6 kB / 16.62 MB, free: 6.957 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.0009723/0.0009724, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.282/1.282, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2578/0.2578, allocations: 48.84 MB / 319.6 MB, free: 11.26 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.001286/0.001286, allocations: 64.12 kB / 389.6 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08696, allocations: 59.16 MB / 448.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.00344/0.09044, allocations: 2.442 MB / 451.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.09148, allocations: 0.6786 MB / 451.8 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.09162, allocations: 4 kB / 451.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.09176, allocations: 23.78 kB / 451.9 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.092, allocations: 71.45 kB / 451.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001443/0.09215, allocations: 47.95 kB / 452 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.09244, allocations: 286.7 kB / 452.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.0926, allocations: 69.31 kB / 452.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.09277, allocations: 123.4 kB / 452.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.09292, allocations: 115.5 kB / 452.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.26e-05/0.09296, allocations: 16 kB / 452.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.09303, allocations: 24 kB / 452.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.416e-05/0.09308, allocations: 55.72 kB / 452.7 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.09319, allocations: 119.3 kB / 452.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.09342, allocations: 231.3 kB / 453 MB, free: 5.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.09344, allocations: 4 kB / 453 MB, free: 5.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09345, allocations: 4 kB / 453 MB, free: 5.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.09346, allocations: 0 / 453 MB, free: 5.805 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.0009457/0.09441, allocations: 0.5568 MB / 453.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.09445, allocations: 11.89 kB / 453.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.09456, allocations: 32.56 kB / 453.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.09486, allocations: 266.8 kB / 453.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.09491, allocations: 38.27 kB / 453.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.09496, allocations: 20.38 kB / 453.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.09529, allocations: 182.9 kB / 454.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.09531, allocations: 3.906 kB / 454.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.09534, allocations: 11.98 kB / 454.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.09535, allocations: 4 kB / 454.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.09564, allocations: 115.9 kB / 454.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000924/0.09657, allocations: 0.6734 MB / 454.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.09691, allocations: 154.5 kB / 455.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.09708, allocations: 80.83 kB / 455.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.0971, allocations: 0 / 455.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/0.09712, allocations: 38.55 kB / 455.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.032e-06/0.09713, allocations: 4 kB / 455.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001042/0.09818, allocations: 0.5719 MB / 455.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.09821, allocations: 55.41 kB / 455.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.09842, allocations: 229 kB / 456 MB, free: 2.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.09844, allocations: 33.7 kB / 456.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.09853, allocations: 148.3 kB / 456.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.09858, allocations: 71 kB / 456.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.09865, allocations: 49.64 kB / 456.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/0.09874, allocations: 330.8 kB / 456.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.09888, allocations: 59.97 kB / 456.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.09902, allocations: 81.61 kB / 456.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.09928, allocations: 153.4 kB / 456.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.09929, allocations: 4 kB / 456.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003385/0.09964, allocations: 205.2 kB / 457.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.09966, allocations: 4 kB / 457.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.09967, allocations: 0 / 457.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.09968, allocations: 0 / 457.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.1001, allocations: 83.98 kB / 457.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1001, allocations: 0 / 457.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1002, allocations: 15.97 kB / 457.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1003, allocations: 7.938 kB / 457.2 MB, free: 1.262 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 9.658e-05/0.1004, allocations: 133.8 kB / 457.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.1004, allocations: 19.72 kB / 457.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.612e-05/0.1005, allocations: 38.17 kB / 457.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1005, allocations: 0 / 457.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1005, allocations: 0 / 457.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1005, allocations: 0 / 457.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000656/0.1012, allocations: 0.5426 MB / 458 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1012, allocations: 0 / 458 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.1016, allocations: 63.95 kB / 458 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1016, allocations: 0 / 458 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1016, allocations: 7.938 kB / 458 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1016, allocations: 7.938 kB / 458.1 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.1016, allocations: 3.938 kB / 458.1 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.1021, allocations: 347.4 kB / 458.4 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.527e-05/0.1022, allocations: 112.8 kB / 458.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1022, allocations: 4 kB / 458.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.1024, allocations: 11.98 kB / 458.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.1025, allocations: 15.92 kB / 458.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.1025, allocations: 4 kB / 458.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1026, allocations: 172.5 kB / 458.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1026, allocations: 0 / 458.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.1029, allocations: 44 kB / 458.8 MB, free: 15.66 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.895e-05/0.103, allocations: 107.2 kB / 458.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.1033, allocations: 159.9 kB / 459 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1034, allocations: 3.938 kB / 459 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.1035, allocations: 71.91 kB / 459.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.1039, allocations: 40.41 kB / 459.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.105, allocations: 0.7339 MB / 459.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.1053, allocations: 0.7518 MB / 460.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.759e-05/0.1054, allocations: 29.92 kB / 460.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.1054, allocations: 23.38 kB / 460.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1054, allocations: 0 / 460.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Templates: time 0.00436/0.1098, allocations: 1.922 MB / 462.6 MB, free: 11.76 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)